| 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 library test_progress; | 5 library test_progress; |
| 6 | 6 |
| 7 import "dart:async"; | 7 import "dart:async"; |
| 8 import "dart:io"; | 8 import "dart:io"; |
| 9 import "dart:io" as io; | 9 import "dart:io" as io; |
| 10 import "dart:convert" show JSON; | 10 import "dart:convert" show JSON; |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 Duration d = (new DateTime.now()).difference(_startTime); | 334 Duration d = (new DateTime.now()).difference(_startTime); |
| 335 print('\n--- Total time: ${_timeString(d)} ---'); | 335 print('\n--- Total time: ${_timeString(d)} ---'); |
| 336 var outputs = _commandOutputs.toList(); | 336 var outputs = _commandOutputs.toList(); |
| 337 outputs.sort((a, b) { | 337 outputs.sort((a, b) { |
| 338 return b.time.inMilliseconds - a.time.inMilliseconds; | 338 return b.time.inMilliseconds - a.time.inMilliseconds; |
| 339 }); | 339 }); |
| 340 for (int i = 0; i < 20 && i < outputs.length; i++) { | 340 for (int i = 0; i < 20 && i < outputs.length; i++) { |
| 341 var commandOutput = outputs[i]; | 341 var commandOutput = outputs[i]; |
| 342 var command = commandOutput.command; | 342 var command = commandOutput.command; |
| 343 var testCases = _command2testCases[command]; | 343 var testCases = _command2testCases[command]; |
| 344 var duration = commandOutput.time; | |
| 345 | 344 |
| 346 var testCasesDescription = testCases.map((testCase) { | 345 var testCasesDescription = testCases.map((testCase) { |
| 347 return "${testCase.configurationString}/${testCase.displayName}"; | 346 return "${testCase.configurationString}/${testCase.displayName}"; |
| 348 }).join(', '); | 347 }).join(', '); |
| 349 | 348 |
| 350 print('${commandOutput.time} - ' | 349 print('${commandOutput.time} - ' |
| 351 '${command.displayName} - ' | 350 '${command.displayName} - ' |
| 352 '$testCasesDescription'); | 351 '$testCasesDescription'); |
| 353 } | 352 } |
| 354 } | 353 } |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 return new VerboseProgressIndicator(startTime); | 660 return new VerboseProgressIndicator(startTime); |
| 662 case 'status': | 661 case 'status': |
| 663 return new ProgressIndicator(startTime); | 662 return new ProgressIndicator(startTime); |
| 664 case 'buildbot': | 663 case 'buildbot': |
| 665 return new BuildbotProgressIndicator(startTime); | 664 return new BuildbotProgressIndicator(startTime); |
| 666 default: | 665 default: |
| 667 assert(false); | 666 assert(false); |
| 668 break; | 667 break; |
| 669 } | 668 } |
| 670 } | 669 } |
| OLD | NEW |