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

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

Issue 2099553002: Add an option to run skipped tests. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 4 years, 5 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.dart ('k') | lib/src/runner/configuration/args.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/configuration.dart
diff --git a/lib/src/runner/configuration.dart b/lib/src/runner/configuration.dart
index 881be09096539953bf4127e83bd30324c69fdb8a..321a4066e9d1099a628514ebf27f025e3e3cae4d 100644
--- a/lib/src/runner/configuration.dart
+++ b/lib/src/runner/configuration.dart
@@ -54,6 +54,10 @@ class Configuration {
/// The reason tests or suites should be skipped, if given.
final String skipReason;
+ /// Whether skipped tests should be run.
+ bool get runSkipped => _runSkipped ?? false;
+ final bool _runSkipped;
+
/// The selector indicating which platforms the tests support.
///
/// When [merge]d, this is intersected with the other configuration's
@@ -275,6 +279,7 @@ class Configuration {
bool jsTrace,
bool skip,
String skipReason,
+ bool runSkipped,
PlatformSelector testOn,
bool pauseAfterLoad,
bool color,
@@ -306,6 +311,7 @@ class Configuration {
jsTrace: jsTrace,
skip: skip,
skipReason: skipReason,
+ runSkipped: runSkipped,
testOn: testOn,
pauseAfterLoad: pauseAfterLoad,
color: color,
@@ -376,6 +382,7 @@ class Configuration {
bool jsTrace,
bool skip,
this.skipReason,
+ bool runSkipped,
PlatformSelector testOn,
bool pauseAfterLoad,
bool color,
@@ -405,6 +412,7 @@ class Configuration {
_verboseTrace = verboseTrace,
_jsTrace = jsTrace,
_skip = skip,
+ _runSkipped = runSkipped,
testOn = testOn ?? PlatformSelector.all,
_pauseAfterLoad = pauseAfterLoad,
_color = color,
@@ -479,6 +487,7 @@ class Configuration {
jsTrace: other._jsTrace ?? _jsTrace,
skip: other._skip ?? _skip,
skipReason: other.skipReason ?? skipReason,
+ runSkipped: other._runSkipped ?? _runSkipped,
testOn: testOn.intersection(other.testOn),
pauseAfterLoad: other._pauseAfterLoad ?? _pauseAfterLoad,
color: other._color ?? _color,
@@ -521,6 +530,7 @@ class Configuration {
bool jsTrace,
bool skip,
String skipReason,
+ bool runSkipped,
PlatformSelector testOn,
bool pauseAfterLoad,
bool color,
@@ -552,6 +562,7 @@ class Configuration {
jsTrace: jsTrace ?? _jsTrace,
skip: skip ?? _skip,
skipReason: skipReason ?? this.skipReason,
+ runSkipped: runSkipped ?? _runSkipped,
testOn: testOn ?? this.testOn,
pauseAfterLoad: pauseAfterLoad ?? _pauseAfterLoad,
color: color ?? _color,
« no previous file with comments | « lib/src/runner.dart ('k') | lib/src/runner/configuration/args.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698