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

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

Issue 846433002: Allow for reporting with the --list option (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/test_configurations.dart ('k') | tools/testing/dart/test_suite.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * Classes and methods for executing tests. 6 * Classes and methods for executing tests.
7 * 7 *
8 * This module includes: 8 * This module includes:
9 * - Managing parallel execution of tests, including timeout checks. 9 * - Managing parallel execution of tests, including timeout checks.
10 * - Evaluating the output of each test as pass/fail/crash/timeout. 10 * - Evaluating the output of each test as pass/fail/crash/timeout.
(...skipping 2775 matching lines...) Expand 10 before | Expand all | Expand 10 after
2786 String recordedInputFile]) { 2786 String recordedInputFile]) {
2787 void setupForListing(TestCaseEnqueuer testCaseEnqueuer) { 2787 void setupForListing(TestCaseEnqueuer testCaseEnqueuer) {
2788 _graph.events.where((event) => event is dgraph.GraphSealedEvent) 2788 _graph.events.where((event) => event is dgraph.GraphSealedEvent)
2789 .listen((dgraph.GraphSealedEvent event) { 2789 .listen((dgraph.GraphSealedEvent event) {
2790 var testCases = new List.from(testCaseEnqueuer.remainingTestCases); 2790 var testCases = new List.from(testCaseEnqueuer.remainingTestCases);
2791 testCases.sort((a, b) => a.displayName.compareTo(b.displayName)); 2791 testCases.sort((a, b) => a.displayName.compareTo(b.displayName));
2792 2792
2793 print("\nGenerating all matching test cases ....\n"); 2793 print("\nGenerating all matching test cases ....\n");
2794 2794
2795 for (TestCase testCase in testCases) { 2795 for (TestCase testCase in testCases) {
2796 eventFinishedTestCase(testCase);
2796 print("${testCase.displayName} " 2797 print("${testCase.displayName} "
2797 "Expectations: ${testCase.expectedOutcomes.join(', ')} " 2798 "Expectations: ${testCase.expectedOutcomes.join(', ')} "
2798 "Configuration: '${testCase.configurationString}'"); 2799 "Configuration: '${testCase.configurationString}'");
2799 } 2800 }
2801 eventAllTestsKnown();
2800 }); 2802 });
2801 } 2803 }
2802 2804
2803 var testCaseEnqueuer; 2805 var testCaseEnqueuer;
2804 CommandQueue commandQueue; 2806 CommandQueue commandQueue;
2807
2805 void setupForRunning(TestCaseEnqueuer testCaseEnqueuer) { 2808 void setupForRunning(TestCaseEnqueuer testCaseEnqueuer) {
2806 Timer _debugTimer; 2809 Timer _debugTimer;
2807 // If we haven't seen a single test finishing during a 10 minute period 2810 // If we haven't seen a single test finishing during a 10 minute period
2808 // something is definitly wrong, so we dump the debugging information. 2811 // something is definitly wrong, so we dump the debugging information.
2809 final debugTimerDuration = const Duration(minutes: 10); 2812 final debugTimerDuration = const Duration(minutes: 10);
2810 2813
2811 void cancelDebugTimer() { 2814 void cancelDebugTimer() {
2812 if (_debugTimer != null) { 2815 if (_debugTimer != null) {
2813 _debugTimer.cancel(); 2816 _debugTimer.cancel();
2814 } 2817 }
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
2950 } 2953 }
2951 } 2954 }
2952 2955
2953 void eventAllTestsDone() { 2956 void eventAllTestsDone() {
2954 for (var listener in _eventListener) { 2957 for (var listener in _eventListener) {
2955 listener.allDone(); 2958 listener.allDone();
2956 } 2959 }
2957 _allDone(); 2960 _allDone();
2958 } 2961 }
2959 } 2962 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_configurations.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698