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

Side by Side Diff: lib/src/runner/configuration/values.dart

Issue 1668573003: Add configuration support for choosing test paths. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: cr 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
« no previous file with comments | « lib/src/runner/configuration/load.dart ('k') | lib/src/runner/loader.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) 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");
OLDNEW
« no previous file with comments | « lib/src/runner/configuration/load.dart ('k') | lib/src/runner/loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698