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

Unified Diff: test/runner/compact_reporter_test.dart

Issue 1100873005: Add a --reporter flag and expose the expanded reporter. (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/browser/expanded_reporter_test.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 4650b9fcc35e49382e7c40339ed2c42852a127d8..a03862ec280a374269ef81faf13cbc94bc78f1a5 100644
--- a/test/runner/compact_reporter_test.dart
+++ b/test/runner/compact_reporter_test.dart
@@ -16,7 +16,8 @@ void main() {
test("reports when no tests are run", () {
return withTempDir((path) {
new File(p.join(path, "test.dart")).writeAsStringSync("void main() {}");
- var result = runTest(["test.dart"], workingDirectory: path);
+ var result = runTest(["-r", "compact", "test.dart"],
+ workingDirectory: path);
expect(result.stdout, equals("No tests ran.\n"));
});
});
@@ -332,8 +333,10 @@ $tests
expect(withTempDir((path) {
new File(p.join(path, "test.dart")).writeAsStringSync(dart);
if (args == null) args = [];
- args = args.toList()..add("test.dart");
- args.add("--concurrency=$concurrency");
+ args = args.toList()
+ ..add("test.dart")
+ ..add("--concurrency=$concurrency")
+ ..add("--reporter=compact");
var result = runTest(args, workingDirectory: path);
// Convert CRs into newlines, remove excess trailing whitespace, and trim
« no previous file with comments | « test/runner/browser/expanded_reporter_test.dart ('k') | test/runner/expanded_reporter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698