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

Side by Side 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, 10 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
OLDNEW
(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');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698