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

Unified Diff: lib/src/configuration.dart

Issue 869043002: Clean up unittest a bunch. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Code review changes Created 5 years, 11 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 | « CHANGELOG.md ('k') | lib/src/expected_function.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/configuration.dart
diff --git a/lib/src/configuration.dart b/lib/src/configuration.dart
index ca901328cdc3e32cdd7652bd9d13059b3b38d93f..623243505676d537bb2996c7e85659a67960f784 100644
--- a/lib/src/configuration.dart
+++ b/lib/src/configuration.dart
@@ -4,12 +4,12 @@
library unittest.configuration;
-import 'package:unittest/unittest.dart' show TestCase, SimpleConfiguration;
+import 'simple_configuration.dart';
+import 'test_case.dart';
/// Describes the interface used by the unit test system for communicating the
/// results of a test run.
abstract class Configuration {
-
/// Creates an instance of [SimpleConfiguration].
factory Configuration() => new SimpleConfiguration();
@@ -18,9 +18,10 @@ abstract class Configuration {
/// For use by subclasses which wish to implement only a subset of features.
Configuration.blank();
- /// If [:true:], tests are started automatically. Otherwise [runTests]
- /// must be called explicitly after tests are set up.
- bool get autoStart => true;
+ /// If `true`, tests are started automatically once they're finished being defined.
+ ///
+ /// Otherwise, [runTests] must be called explicitly after tests are set up.
+ final autoStart = true;
/// How long a [TestCase] can run before it is considered an error.
/// A [timeout] value of [:null:] means that the limit is infinite.
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/expected_function.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698