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

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

Issue 1802133002: Add names and plain_names fields. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 4 years, 9 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
« no previous file with comments | « lib/src/runner/configuration/args.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/configuration/load.dart
diff --git a/lib/src/runner/configuration/load.dart b/lib/src/runner/configuration/load.dart
index 9a9778cb9fd3e1bd0e8c6be72674177f554a5ba7..7dd2bb4ad669455b7220e38168b43697e92f09b1 100644
--- a/lib/src/runner/configuration/load.dart
+++ b/lib/src/runner/configuration/load.dart
@@ -146,6 +146,14 @@ class _ConfigurationLoader {
var pubServePort = _getInt("pub_serve");
var concurrency = _getInt("concurrency");
+ var patterns = _getList("names", (nameNode) {
+ _validate(nameNode, "Names must be strings.", (value) => value is String);
+ return _parseNode(nameNode, "name", (value) => new RegExp(value));
+ })..addAll(_getList("plain_names", (nameNode) {
+ _validate(nameNode, "Names must be strings.", (value) => value is String);
+ return nameNode.value;
+ }));
+
var allPlatformIdentifiers =
TestPlatform.all.map((platform) => platform.identifier).toSet();
var platforms = _getList("platforms", (platformNode) {
@@ -173,6 +181,7 @@ class _ConfigurationLoader {
reporter: reporter,
pubServePort: pubServePort,
concurrency: concurrency,
+ patterns: patterns,
platforms: platforms,
paths: paths,
filename: filename,
« no previous file with comments | « lib/src/runner/configuration/args.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698