| Index: test/runner/runner_test.dart
|
| diff --git a/test/runner/runner_test.dart b/test/runner/runner_test.dart
|
| index 910f98f7b4d29e6fd462e9131d41f1987ba23061..10d64ad94cdc765d276d3cf494ed37876cc37f88 100644
|
| --- a/test/runner/runner_test.dart
|
| +++ b/test/runner/runner_test.dart
|
| @@ -351,6 +351,23 @@ void main() {
|
| expect(result.stdout, contains("-1: Some tests failed."));
|
| });
|
|
|
| + test("respects top-level @Skip declarations", () {
|
| + new File(p.join(_sandbox, "test.dart")).writeAsStringSync('''
|
| +@Skip()
|
| +
|
| +import 'dart:async';
|
| +
|
| +import 'package:test/test.dart';
|
| +
|
| +void main() {
|
| + test("fail", () => throw 'oh no');
|
| +}
|
| +''');
|
| +
|
| + var result = _runUnittest(["test.dart"]);
|
| + expect(result.stdout, contains("+0 ~1: All tests skipped."));
|
| + });
|
| +
|
| group("flags:", () {
|
| test("with the --color flag, uses colors", () {
|
| new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_failure);
|
|
|