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

Side by Side Diff: tools/testing/dart/test_progress.dart

Issue 2984203002: Move the status file parser into its own package. (Closed)
Patch Set: Created 3 years, 4 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 | « tools/testing/dart/summary_report.dart ('k') | tools/testing/dart/test_runner.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import 'dart:convert' show JSON; 5 import 'dart:convert' show JSON;
6 import 'dart:io'; 6 import 'dart:io';
7 7
8 import "package:status_file/expectation.dart";
9
8 import 'command.dart'; 10 import 'command.dart';
9 import 'command_output.dart'; 11 import 'command_output.dart';
10 import 'configuration.dart'; 12 import 'configuration.dart';
11 import 'expectation.dart';
12 import 'path.dart'; 13 import 'path.dart';
13 import 'summary_report.dart'; 14 import 'summary_report.dart';
14 import 'test_runner.dart'; 15 import 'test_runner.dart';
15 import 'utils.dart'; 16 import 'utils.dart';
16 17
17 /// Controls how message strings are processed before being displayed. 18 /// Controls how message strings are processed before being displayed.
18 class Formatter { 19 class Formatter {
19 /// Messages are left as-is. 20 /// Messages are left as-is.
20 static const normal = const Formatter._(); 21 static const normal = const Formatter._();
21 22
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 } 669 }
669 670
670 String _buildSummaryEnd(int failedTests) { 671 String _buildSummaryEnd(int failedTests) {
671 if (failedTests == 0) { 672 if (failedTests == 0) {
672 return '\n===\n=== All tests succeeded\n===\n'; 673 return '\n===\n=== All tests succeeded\n===\n';
673 } else { 674 } else {
674 var pluralSuffix = failedTests != 1 ? 's' : ''; 675 var pluralSuffix = failedTests != 1 ? 's' : '';
675 return '\n===\n=== ${failedTests} test$pluralSuffix failed\n===\n'; 676 return '\n===\n=== ${failedTests} test$pluralSuffix failed\n===\n';
676 } 677 }
677 } 678 }
OLDNEW
« no previous file with comments | « tools/testing/dart/summary_report.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698