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

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

Issue 11962042: Added DebugLogger to testing scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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_runner.dart ('k') | tools/testing/dart/utils.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 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 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after
1707 * Assumes that the directory for [dest] already exists. 1707 * Assumes that the directory for [dest] already exists.
1708 */ 1708 */
1709 static Future copyFile(Path source, Path dest) { 1709 static Future copyFile(Path source, Path dest) {
1710 var output = new File.fromPath(dest).openOutputStream(); 1710 var output = new File.fromPath(dest).openOutputStream();
1711 new File.fromPath(source).openInputStream().pipe(output); 1711 new File.fromPath(source).openInputStream().pipe(output);
1712 var completer = new Completer(); 1712 var completer = new Completer();
1713 output.onClosed = (){ completer.complete(null); }; 1713 output.onClosed = (){ completer.complete(null); };
1714 return completer.future; 1714 return completer.future;
1715 } 1715 }
1716 1716
1717 static Path debugLogfile() {
1718 return new Path(".debug.log");
1719 }
1720
1717 static String flakyFileName() { 1721 static String flakyFileName() {
1718 // If a flaky test did fail, infos about it (i.e. test name, stdin, stdout) 1722 // If a flaky test did fail, infos about it (i.e. test name, stdin, stdout)
1719 // will be written to this file. This is useful for the debugging of 1723 // will be written to this file. This is useful for the debugging of
1720 // flaky tests. 1724 // flaky tests.
1721 // When running on a built bot, the file can be made visible in the 1725 // When running on a built bot, the file can be made visible in the
1722 // waterfall UI. 1726 // waterfall UI.
1723 return ".flaky.log"; 1727 return ".flaky.log";
1724 } 1728 }
1725 1729
1726 static void ensureExists(String filename, Map configuration) { 1730 static void ensureExists(String filename, Map configuration) {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1893 * $pass tests are expected to pass 1897 * $pass tests are expected to pass
1894 * $failOk tests are expected to fail that we won't fix 1898 * $failOk tests are expected to fail that we won't fix
1895 * $fail tests are expected to fail that we should fix 1899 * $fail tests are expected to fail that we should fix
1896 * $crash tests are expected to crash that we should fix 1900 * $crash tests are expected to crash that we should fix
1897 * $timeout tests are allowed to timeout 1901 * $timeout tests are allowed to timeout
1898 * $compileErrorSkip tests are skipped on browsers due to compile-time error 1902 * $compileErrorSkip tests are skipped on browsers due to compile-time error
1899 """; 1903 """;
1900 print(report); 1904 print(report);
1901 } 1905 }
1902 } 1906 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | tools/testing/dart/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698