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

Unified Diff: lib/src/runner/engine.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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/runner/engine.dart
diff --git a/lib/src/runner/engine.dart b/lib/src/runner/engine.dart
index c570d4aa179849f2782575129068043dba137fc3..824f34e282ba614b6b8b3435ae9c9a5d3c9accfd 100644
--- a/lib/src/runner/engine.dart
+++ b/lib/src/runner/engine.dart
@@ -16,7 +16,6 @@ import '../backend/live_test_controller.dart';
import '../backend/state.dart';
import '../backend/suite.dart';
import '../backend/test.dart';
-import '../util/delegating_sink.dart';
import 'load_suite.dart';
/// An [Engine] manages a run that encompasses multiple test suites.
@@ -136,6 +135,13 @@ class Engine {
/// This is separate from [active] because load tests aren't always surfaced.
final _activeLoadTests = new List<LiveTest>();
+ /// Whether this engine is idle—that is, not currently executing a test.
+ bool get isIdle => _group.isIdle;
+
+ /// A broadcast stream that fires an event whenever [isIdle] switches from
+ /// `false` to `true`.
+ Stream get onIdle => _group.onIdle;
+
/// Creates an [Engine] that will run all tests provided via [suiteSink].
///
/// [concurrency] controls how many suites are run at once, and defaults to 1.

Powered by Google App Engine
This is Rietveld 408576698