OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:collection/collection.dart'; | 7 import 'package:collection/collection.dart'; |
8 | 8 |
9 import '../backend/live_test.dart'; | 9 import '../backend/live_test.dart'; |
10 import 'runner_suite.dart'; | 10 import 'runner_suite.dart'; |
(...skipping 18 matching lines...) Expand all Loading... |
29 /// tests are guaranteed to emit no more events. | 29 /// tests are guaranteed to emit no more events. |
30 bool get isComplete; | 30 bool get isComplete; |
31 | 31 |
32 /// A [Future] that completes once the suite is complete. | 32 /// A [Future] that completes once the suite is complete. |
33 /// | 33 /// |
34 /// Note that even once this completes, the suite may still be running code | 34 /// Note that even once this completes, the suite may still be running code |
35 /// asynchronously. A suite is considered complete once all of its tests are | 35 /// asynchronously. A suite is considered complete once all of its tests are |
36 /// complete, but it's possible for a test to continue running even after it's | 36 /// complete, but it's possible for a test to continue running even after it's |
37 /// been marked complete—see [LiveTest.isComplete] for details. | 37 /// been marked complete—see [LiveTest.isComplete] for details. |
38 /// | 38 /// |
39 /// The [onComplete] future can be used to determine when the suite and its | 39 /// The [onClose] future can be used to determine when the suite and its tests |
40 /// tests are guaranteed to emit no more events. | 40 /// are guaranteed to emit no more events. |
41 Future get onComplete; | 41 Future get onComplete; |
42 | 42 |
43 /// Whether the suite has been closed. | 43 /// Whether the suite has been closed. |
44 /// | 44 /// |
45 /// If this is `true`, no code is running for the suite or any of its tests. | 45 /// If this is `true`, no code is running for the suite or any of its tests. |
46 /// At this point, the caller can be sure that the suites' tests are all in | 46 /// At this point, the caller can be sure that the suites' tests are all in |
47 /// fixed states that will not change in the future. | 47 /// fixed states that will not change in the future. |
48 bool get isClosed; | 48 bool get isClosed; |
49 | 49 |
50 /// A [Future] that completes when the suite has been closed. | 50 /// A [Future] that completes when the suite has been closed. |
(...skipping 28 matching lines...) Expand all Loading... |
79 /// skipped. | 79 /// skipped. |
80 Set<LiveTest> get skipped; | 80 Set<LiveTest> get skipped; |
81 | 81 |
82 /// The set of tests in this suite that have completed and been marked as | 82 /// The set of tests in this suite that have completed and been marked as |
83 /// failing or error. | 83 /// failing or error. |
84 Set<LiveTest> get failed; | 84 Set<LiveTest> get failed; |
85 | 85 |
86 /// The currently running test in this suite, or `null` if no test is running. | 86 /// The currently running test in this suite, or `null` if no test is running. |
87 LiveTest get active; | 87 LiveTest get active; |
88 } | 88 } |
OLD | NEW |