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 library dev_compiler.test.test_util; | 5 library dev_compiler.test.test_util; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:mirrors'; |
| 8 import 'package:path/path.dart' as path; |
8 | 9 |
9 import 'package:unittest/compact_vm_config.dart'; | 10 final String testDirectory = |
10 import 'package:unittest/unittest.dart'; | 11 path.dirname((reflectClass(_TestUtils).owner as LibraryMirror).uri.path); |
11 | 12 |
12 void configureTest() { | 13 class _TestUtils {} |
13 if (!Platform.environment.containsKey('COVERALLS_TOKEN')) { | |
14 groupSep = " > "; | |
15 useCompactVMConfiguration(); | |
16 } | |
17 } | |
OLD | NEW |