Index: lib/src/runner/configuration.dart |
diff --git a/lib/src/runner/configuration.dart b/lib/src/runner/configuration.dart |
index e4371c6d1b33dbbf8e7e2200289d41abfd768def..a50931e534f09cddcdeb865b6cbedd8b5c0e439c 100644 |
--- a/lib/src/runner/configuration.dart |
+++ b/lib/src/runner/configuration.dart |
@@ -56,6 +56,11 @@ class Configuration { |
help: 'The port of a pub serve instance serving "test/".', |
hide: !supportsPubServe, |
valueHelp: 'port'); |
+ parser.addFlag("pause-after-load", |
+ help: 'Pauses for debugging before any tests execute.\n' |
+ 'Implies --concurrency=1.\n' |
+ 'Currently only supported for browser tests.', |
+ negatable: false); |
parser.addOption("reporter", |
abbr: 'r', |
help: 'The runner used to print test results.', |
@@ -95,6 +100,9 @@ class Configuration { |
/// Dart-like traces. |
bool get jsTrace => _options['js-trace']; |
+ /// Whether to pause for debugging after loading each test suite. |
+ bool get pauseAfterLoad => _options['pause-after-load']; |
+ |
/// The package root for resolving "package:" URLs. |
String get packageRoot => _options['package-root'] == null |
? p.join(p.current, 'packages') |