OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import 'dart:io'; |
| 6 import 'dart:math' as math; |
| 7 |
| 8 import '../../util/io.dart'; |
| 9 |
| 10 /// The default number of test suites to run at once. |
| 11 /// |
| 12 /// This defaults to half the available processors, since presumably some of |
| 13 /// them will be used for the OS and other processes. |
| 14 final defaultConcurrency = math.max(1, Platform.numberOfProcessors ~/ 2); |
| 15 |
| 16 /// The reporters supported by the test runner. |
| 17 const allReporters = const ["compact", "expanded", "json"]; |
| 18 |
| 19 /// The default reporter. |
| 20 final defaultReporter = inTestTests |
| 21 ? 'expanded' |
| 22 : (Platform.isWindows ? 'expanded' : 'compact'); |
OLD | NEW |