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

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

Issue 557563002: Store the async-await compiled pub code directly in the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 * * The status file uses the same name. 628 * * The status file uses the same name.
629 * * Test files are directly in that directory and end in "_test.dart". 629 * * Test files are directly in that directory and end in "_test.dart".
630 * 630 *
631 * If you follow that convention, then you can construct one of these like: 631 * If you follow that convention, then you can construct one of these like:
632 * 632 *
633 * new StandardTestSuite.forDirectory(configuration, 'path/to/mytestsuite'); 633 * new StandardTestSuite.forDirectory(configuration, 'path/to/mytestsuite');
634 * 634 *
635 * instead of having to create a custom [StandardTestSuite] subclass. In 635 * instead of having to create a custom [StandardTestSuite] subclass. In
636 * particular, if you add 'path/to/mytestsuite' to [TEST_SUITE_DIRECTORIES] 636 * particular, if you add 'path/to/mytestsuite' to [TEST_SUITE_DIRECTORIES]
637 * in test.dart, this will all be set up for you. 637 * in test.dart, this will all be set up for you.
638 *
639 * The [StandardTestSuite] also optionally takes a list of servers that have
640 * been started up by the test harness, to be used by browser tests.
641 */ 638 */
642 factory StandardTestSuite.forDirectory(Map configuration, Path directory) { 639 factory StandardTestSuite.forDirectory(Map configuration, Path directory,
643 final name = directory.filename; 640 [String name]) {
641 if (name == null) name = directory.filename;
644 642
645 var status_paths = ['$directory/$name.status', 643 var status_paths = ['$directory/$name.status',
646 '$directory/.status', 644 '$directory/.status',
647 '$directory/${name}_dart2js.status', 645 '$directory/${name}_dart2js.status',
648 '$directory/${name}_analyzer.status', 646 '$directory/${name}_analyzer.status',
649 '$directory/${name}_analyzer2.status']; 647 '$directory/${name}_analyzer2.status'];
650 648
651 return new StandardTestSuite(configuration, 649 return new StandardTestSuite(configuration,
652 name, directory, 650 name, directory,
653 status_paths, 651 status_paths,
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
2291 * $pass tests are expected to pass 2289 * $pass tests are expected to pass
2292 * $failOk tests are expected to fail that we won't fix 2290 * $failOk tests are expected to fail that we won't fix
2293 * $fail tests are expected to fail that we should fix 2291 * $fail tests are expected to fail that we should fix
2294 * $crash tests are expected to crash that we should fix 2292 * $crash tests are expected to crash that we should fix
2295 * $timeout tests are allowed to timeout 2293 * $timeout tests are allowed to timeout
2296 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2294 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2297 """; 2295 """;
2298 print(report); 2296 print(report);
2299 } 2297 }
2300 } 2298 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698