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

Unified Diff: test/runner/compact_reporter_test.dart

Issue 1471963002: Fix a bug with skipped groups. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 1 month 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 | « lib/src/backend/group.dart ('k') | test/runner/expanded_reporter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/compact_reporter_test.dart
diff --git a/test/runner/compact_reporter_test.dart b/test/runner/compact_reporter_test.dart
index 47b9db9112471c41cda8ad054539ff05e90de1c0..f8908790240c5f3e034dc723d287e5097b40398b 100644
--- a/test/runner/compact_reporter_test.dart
+++ b/test/runner/compact_reporter_test.dart
@@ -322,6 +322,20 @@ void main() {
+0 ~3: All tests skipped.""");
});
+ test("displays a skipped group", () {
+ _expectReport("""
+ group('skip', () {
+ test('test 1', () {});
+ test('test 2', () {});
+ test('test 3', () {});
+ }, skip: true);""",
+ """
+ +0: loading test.dart
+ +0: skip
+ +0 ~1: skip
+ +0 ~1: All tests skipped.""");
+ });
+
test("runs skipped tests along with successful tests", () {
_expectReport("""
test('skip 1', () {}, skip: true);
« no previous file with comments | « lib/src/backend/group.dart ('k') | test/runner/expanded_reporter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698