OLD | NEW |
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 'command.dart'; |
| 9 import 'command_output.dart'; |
8 import 'configuration.dart'; | 10 import 'configuration.dart'; |
9 import 'expectation.dart'; | 11 import 'expectation.dart'; |
10 import 'path.dart'; | 12 import 'path.dart'; |
11 import 'summary_report.dart'; | 13 import 'summary_report.dart'; |
12 import 'test_runner.dart'; | 14 import 'test_runner.dart'; |
13 import 'utils.dart'; | 15 import 'utils.dart'; |
14 | 16 |
15 /// Controls how message strings are processed before being displayed. | 17 /// Controls how message strings are processed before being displayed. |
16 class Formatter { | 18 class Formatter { |
17 /// Messages are left as-is. | 19 /// Messages are left as-is. |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 } | 668 } |
667 | 669 |
668 String _buildSummaryEnd(int failedTests) { | 670 String _buildSummaryEnd(int failedTests) { |
669 if (failedTests == 0) { | 671 if (failedTests == 0) { |
670 return '\n===\n=== All tests succeeded\n===\n'; | 672 return '\n===\n=== All tests succeeded\n===\n'; |
671 } else { | 673 } else { |
672 var pluralSuffix = failedTests != 1 ? 's' : ''; | 674 var pluralSuffix = failedTests != 1 ? 's' : ''; |
673 return '\n===\n=== ${failedTests} test$pluralSuffix failed\n===\n'; | 675 return '\n===\n=== ${failedTests} test$pluralSuffix failed\n===\n'; |
674 } | 676 } |
675 } | 677 } |
OLD | NEW |