| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 @TestOn("vm") | 5 @TestOn("vm") |
| 6 | 6 |
| 7 import 'dart:convert'; | 7 import 'dart:convert'; |
| 8 | 8 |
| 9 import 'package:scheduled_test/descriptor.dart' as d; | 9 import 'package:scheduled_test/descriptor.dart' as d; |
| 10 import 'package:scheduled_test/scheduled_test.dart'; | 10 import 'package:scheduled_test/scheduled_test.dart'; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 """).create(); | 173 """).create(); |
| 174 | 174 |
| 175 var test = runTest(["."]); | 175 var test = runTest(["."]); |
| 176 test.stdout.expect(containsInOrder([ | 176 test.stdout.expect(containsInOrder([ |
| 177 "+0: ./test_foo.dart: test_foo", | 177 "+0: ./test_foo.dart: test_foo", |
| 178 "+1: All tests passed!" | 178 "+1: All tests passed!" |
| 179 ])); | 179 ])); |
| 180 test.shouldExit(0); | 180 test.shouldExit(0); |
| 181 }); | 181 }); |
| 182 | 182 |
| 183 test("doesn't OS-specific configuration on a non-matching OS", () { | 183 test("doesn't apply OS-specific configuration on a non-matching OS", () { |
| 184 d.file("dart_test.yaml", JSON.encode({ | 184 d.file("dart_test.yaml", JSON.encode({ |
| 185 "on_os": { | 185 "on_os": { |
| 186 otherOS: {"filename": "test_*.dart"} | 186 otherOS: {"filename": "test_*.dart"} |
| 187 } | 187 } |
| 188 })).create(); | 188 })).create(); |
| 189 | 189 |
| 190 d.file("foo_test.dart", """ | 190 d.file("foo_test.dart", """ |
| 191 import 'package:test/test.dart'; | 191 import 'package:test/test.dart'; |
| 192 | 192 |
| 193 void main() { | 193 void main() { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 var test = runTest([]); | 257 var test = runTest([]); |
| 258 test.stderr.expect(containsInOrder([ | 258 test.stderr.expect(containsInOrder([ |
| 259 "Invalid timeout: expected unit.", | 259 "Invalid timeout: expected unit.", |
| 260 "^^^^^" | 260 "^^^^^" |
| 261 ])); | 261 ])); |
| 262 test.shouldExit(exit_codes.data); | 262 test.shouldExit(exit_codes.data); |
| 263 }); | 263 }); |
| 264 }); | 264 }); |
| 265 }); | 265 }); |
| 266 } | 266 } |
| OLD | NEW |