Chromium Code Reviews

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

Issue 1248073003: Add a --pause-after-load flag for debugging. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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')

Powered by Google App Engine