OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:io'; | 5 import 'dart:io'; |
6 import 'dart:math' as math; | 6 import 'dart:math' as math; |
7 | 7 |
8 import '../../util/io.dart'; | 8 import '../../util/io.dart'; |
9 | 9 |
10 /// The default number of test suites to run at once. | 10 /// The default number of test suites to run at once. |
11 /// | 11 /// |
12 /// This defaults to half the available processors, since presumably some of | 12 /// This defaults to half the available processors, since presumably some of |
13 /// them will be used for the OS and other processes. | 13 /// them will be used for the OS and other processes. |
14 final defaultConcurrency = math.max(1, Platform.numberOfProcessors ~/ 2); | 14 final defaultConcurrency = math.max(1, Platform.numberOfProcessors ~/ 2); |
15 | 15 |
16 /// The reporters supported by the test runner. | 16 /// The reporters supported by the test runner. |
17 const allReporters = const ["compact", "expanded", "json"]; | 17 const allReporters = const ["compact", "expanded", "json"]; |
18 | 18 |
19 /// The default reporter. | 19 /// The default reporter. |
20 final defaultReporter = inTestTests | 20 final defaultReporter = inTestTests |
21 ? 'expanded' | 21 ? 'expanded' |
22 : (Platform.isWindows ? 'expanded' : 'compact'); | 22 : (Platform.isWindows ? 'expanded' : 'compact'); |
| 23 |
| 24 /// The default filename pattern. |
| 25 /// |
| 26 /// This is stored here so that we don't have to recompile it multiple times. |
| 27 final defaultFilename = new Glob("*_test.dart"); |
OLD | NEW |