| 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 "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 Loading... |
| 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 } |
| OLD | NEW |