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

Unified Diff: lib/src/suite.dart

Issue 877553009: Add some basic interfaces that will be used for the test runner. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Code review changes Created 5 years, 10 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 | « lib/src/state.dart ('k') | lib/src/test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/suite.dart
diff --git a/lib/src/suite.dart b/lib/src/suite.dart
new file mode 100644
index 0000000000000000000000000000000000000000..14b576a8c5268c4d7c4c9e045b65f7decf316c57
--- /dev/null
+++ b/lib/src/suite.dart
@@ -0,0 +1,24 @@
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library unittest.suite;
+
+import 'dart:collection';
+
+import 'test.dart';
+
+/// A test suite.
+///
+/// A test suite is a set of tests that are intended to be run together and that
+/// share default configuration.
+class Suite {
+ /// The name of the test suite.
+ final String name;
+
+ /// The tests in the test suite.
+ final List<Test> tests;
+
+ Suite(this.name, Iterable<Test> tests)
+ : tests = new UnmodifiableListView<Test>(tests.toList());
+}
« no previous file with comments | « lib/src/state.dart ('k') | lib/src/test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698