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

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

Issue 24449004: Add a flag to disable the reporting and generation of hints in the analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « no previous file | no next file » | 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 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 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 List<String> commonArgumentsFromFile(Path filePath, Map optionsFromFile) { 1301 List<String> commonArgumentsFromFile(Path filePath, Map optionsFromFile) {
1302 List args = TestUtils.standardOptions(configuration); 1302 List args = TestUtils.standardOptions(configuration);
1303 1303
1304 String packageRoot = packageRootArgument(optionsFromFile['packageRoot']); 1304 String packageRoot = packageRootArgument(optionsFromFile['packageRoot']);
1305 if (packageRoot != null) { 1305 if (packageRoot != null) {
1306 args.add(packageRoot); 1306 args.add(packageRoot);
1307 } 1307 }
1308 args.addAll(additionalOptions(filePath)); 1308 args.addAll(additionalOptions(filePath));
1309 if (configuration['analyzer']) { 1309 if (configuration['analyzer']) {
1310 args.add('--machine'); 1310 args.add('--machine');
1311 args.add('--no-hints');
1311 } 1312 }
1312 1313
1313 bool isMultitest = optionsFromFile["isMultitest"]; 1314 bool isMultitest = optionsFromFile["isMultitest"];
1314 List<String> dartOptions = optionsFromFile["dartOptions"]; 1315 List<String> dartOptions = optionsFromFile["dartOptions"];
1315 1316
1316 assert(!isMultitest || dartOptions == null); 1317 assert(!isMultitest || dartOptions == null);
1317 if (dartOptions == null) { 1318 if (dartOptions == null) {
1318 args.add(filePath.toNativePath()); 1319 args.add(filePath.toNativePath());
1319 } else { 1320 } else {
1320 var executable_name = dartOptions[0]; 1321 var executable_name = dartOptions[0];
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
2048 * $pass tests are expected to pass 2049 * $pass tests are expected to pass
2049 * $failOk tests are expected to fail that we won't fix 2050 * $failOk tests are expected to fail that we won't fix
2050 * $fail tests are expected to fail that we should fix 2051 * $fail tests are expected to fail that we should fix
2051 * $crash tests are expected to crash that we should fix 2052 * $crash tests are expected to crash that we should fix
2052 * $timeout tests are allowed to timeout 2053 * $timeout tests are allowed to timeout
2053 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2054 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2054 """; 2055 """;
2055 print(report); 2056 print(report);
2056 } 2057 }
2057 } 2058 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698