Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Unified Diff: test/runner/runner_test.dart

Issue 1096693005: Support @Skip as a suite-level annotation. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/runner/parse_metadata_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/runner/parse_metadata_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698