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

Unified Diff: lib/src/runner/configuration/values.dart

Issue 1649663003: Add basic support for a configuration file. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: lib/src/runner/configuration/values.dart
diff --git a/lib/src/runner/configuration/values.dart b/lib/src/runner/configuration/values.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a266f0903c66f970008a45b7938a691827c780b7
--- /dev/null
+++ b/lib/src/runner/configuration/values.dart
@@ -0,0 +1,22 @@
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'dart:io';
+import 'dart:math' as math;
+
+import '../../util/io.dart';
+
+/// The default number of test suites to run at once.
+///
+/// This defaults to half the available processors, since presumably some of
+/// them will be used for the OS and other processes.
+final defaultConcurrency = math.max(1, Platform.numberOfProcessors ~/ 2);
+
+/// The reporters supported by the test runner.
+const allReporters = const ["compact", "expanded", "json"];
+
+/// The default reporter.
+final defaultReporter = inTestTests
+ ? 'expanded'
+ : (Platform.isWindows ? 'expanded' : 'compact');

Powered by Google App Engine
This is Rietveld 408576698