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

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

Issue 2133823002: Improve hot reload test mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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
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 enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 enqueueTestCaseFromTestInformation(info); 838 enqueueTestCaseFromTestInformation(info);
839 return; 839 return;
840 } 840 }
841 if (!isTestFile(filename)) return; 841 if (!isTestFile(filename)) return;
842 Path filePath = new Path(filename); 842 Path filePath = new Path(filename);
843 843
844 var optionsFromFile = readOptionsFromFile(filePath); 844 var optionsFromFile = readOptionsFromFile(filePath);
845 CreateTest createTestCase = makeTestCaseCreator(optionsFromFile); 845 CreateTest createTestCase = makeTestCaseCreator(optionsFromFile);
846 846
847 if (optionsFromFile['isMultitest']) { 847 if (optionsFromFile['isMultitest']) {
848 group.add(doMultitest(filePath, buildDir, suiteDir, createTestCase)); 848 group.add(doMultitest(filePath,
849 buildDir,
850 suiteDir,
851 createTestCase,
852 configuration['hot_reload']));
849 } else { 853 } else {
850 createTestCase(filePath, filePath, optionsFromFile['hasCompileError'], 854 createTestCase(filePath, filePath, optionsFromFile['hasCompileError'],
851 optionsFromFile['hasRuntimeError'], 855 optionsFromFile['hasRuntimeError'],
852 hasStaticWarning: optionsFromFile['hasStaticWarning']); 856 hasStaticWarning: optionsFromFile['hasStaticWarning']);
853 } 857 }
854 } 858 }
855 859
856 static Path _findPubspecYamlFile(Path filePath) { 860 static Path _findPubspecYamlFile(Path filePath) {
857 final existsCache = TestUtils.existsCache; 861 final existsCache = TestUtils.existsCache;
858 862
(...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after
2478 } 2482 }
2479 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { 2483 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) {
2480 ++shortNameCounter; 2484 ++shortNameCounter;
2481 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); 2485 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH);
2482 path = "short${shortNameCounter}_$pathEnd"; 2486 path = "short${shortNameCounter}_$pathEnd";
2483 } 2487 }
2484 } 2488 }
2485 return path; 2489 return path;
2486 } 2490 }
2487 } 2491 }
OLDNEW
« tools/testing/dart/multitest.dart ('K') | « tools/testing/dart/multitest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698