OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'package:path/path.dart' as p; | 7 import 'package:path/path.dart' as p; |
8 import 'package:unittest/src/backend/state.dart'; | 8 import 'package:unittest/src/backend/state.dart'; |
9 import 'package:unittest/src/runner/loader.dart'; | 9 import 'package:unittest/src/runner/loader.dart'; |
10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
11 | 11 |
12 import 'io.dart'; | 12 import '../io.dart'; |
13 import 'utils.dart'; | 13 import '../utils.dart'; |
14 | 14 |
15 Loader _loader; | 15 Loader _loader; |
16 String _sandbox; | 16 String _sandbox; |
17 | 17 |
18 final _tests = """ | 18 final _tests = """ |
19 import 'dart:async'; | 19 import 'dart:async'; |
20 | 20 |
21 import 'package:unittest/unittest.dart'; | 21 import 'package:unittest/unittest.dart'; |
22 | 22 |
23 void main() { | 23 void main() { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 test("can run tests in those suites", () { | 129 test("can run tests in those suites", () { |
130 var suite = suites.firstWhere((suite) => suite.name.contains("a_test")); | 130 var suite = suites.firstWhere((suite) => suite.name.contains("a_test")); |
131 var liveTest = suite.tests[1].load(suite); | 131 var liveTest = suite.tests[1].load(suite); |
132 expectSingleFailure(liveTest); | 132 expectSingleFailure(liveTest); |
133 return liveTest.run().whenComplete(() => liveTest.close()); | 133 return liveTest.run().whenComplete(() => liveTest.close()); |
134 }); | 134 }); |
135 }); | 135 }); |
136 }); | 136 }); |
137 } | 137 } |
OLD | NEW |