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

Side by Side Diff: test/runner/browser/expanded_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 unified diff | Download patch
« no previous file with comments | « test/runner/browser/compact_reporter_test.dart ('k') | test/runner/compact_reporter_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 @TestOn("vm") 5 @TestOn("vm")
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
10 import 'package:test/src/util/io.dart'; 10 import 'package:test/src/util/io.dart';
(...skipping 17 matching lines...) Expand all
28 import 'dart:async'; 28 import 'dart:async';
29 29
30 import 'package:path/path.dart' as p; 30 import 'package:path/path.dart' as p;
31 import 'package:test/test.dart'; 31 import 'package:test/test.dart';
32 32
33 void main() { 33 void main() {
34 test("success", () {}); 34 test("success", () {});
35 } 35 }
36 """); 36 """);
37 37
38 var result = _runTest( 38 var result = _runTest([
39 ["-p", "content-shell", "-p", "vm", "-j", "1", "test.dart"]); 39 "-r",
40 "expanded",
41 "-p",
42 "content-shell",
43 "-p",
44 "vm",
45 "-j",
46 "1",
47 "test.dart"
48 ]);
40 expect(result.stdout, contains("[VM]")); 49 expect(result.stdout, contains("[VM]"));
41 expect(result.stdout, contains("[Dartium Content Shell]")); 50 expect(result.stdout, contains("[Dartium Content Shell]"));
42 expect(result.exitCode, equals(0)); 51 expect(result.exitCode, equals(0));
43 }); 52 });
44 } 53 }
45 54
46 ProcessResult _runTest(List<String> args) => 55 ProcessResult _runTest(List<String> args) =>
47 runTest(args, workingDirectory: _sandbox); 56 runTest(args, workingDirectory: _sandbox);
OLDNEW
« no previous file with comments | « test/runner/browser/compact_reporter_test.dart ('k') | test/runner/compact_reporter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698