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

Side by Side Diff: test/runner/loader_test.dart

Issue 1008483003: Add a function to parse metadata into a usable object. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Code review changes Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « pubspec.yaml ('k') | test/runner/parse_metadata_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/test_platform.dart'; 9 import 'package:unittest/src/backend/test_platform.dart';
10 import 'package:unittest/src/runner/loader.dart'; 10 import 'package:unittest/src/runner/loader.dart';
11 import 'package:unittest/unittest.dart'; 11 import 'package:unittest/unittest.dart';
12 12
13 import '../io.dart'; 13 import '../io.dart';
14 import '../utils.dart'; 14 import '../utils.dart';
15 15
16 Loader _loader; 16 Loader _loader;
17 String _sandbox; 17 String _sandbox;
18 18
19 final _tests = """ 19 final _tests = """
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 test("can run tests in those suites", () { 139 test("can run tests in those suites", () {
140 var suite = suites.firstWhere((suite) => suite.path.contains("a_test")); 140 var suite = suites.firstWhere((suite) => suite.path.contains("a_test"));
141 var liveTest = suite.tests[1].load(suite); 141 var liveTest = suite.tests[1].load(suite);
142 expectSingleFailure(liveTest); 142 expectSingleFailure(liveTest);
143 return liveTest.run().whenComplete(() => liveTest.close()); 143 return liveTest.run().whenComplete(() => liveTest.close());
144 }); 144 });
145 }); 145 });
146 }); 146 });
147 } 147 }
OLDNEW
« no previous file with comments | « pubspec.yaml ('k') | test/runner/parse_metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698