OLD | NEW |
(Empty) | |
| 1 import 'package:scheduled_test/scheduled_test.dart'; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 main() { |
| 5 initConfig(); |
| 6 integration("includes .dart files from dependencies in debug mode", () { |
| 7 currentSchedule.timeout *= 3; |
| 8 d.dir( |
| 9 "foo", |
| 10 [ |
| 11 d.libPubspec("foo", "0.0.1"), |
| 12 d.dir( |
| 13 "lib", |
| 14 [ |
| 15 d.file('foo.dart', 'foo() => print("hello");'), |
| 16 d.dir("sub", [d.file('bar.dart', 'bar() => print("hello");')
])])]).create(); |
| 17 d.dir(appPath, [d.appPubspec({ |
| 18 "foo": { |
| 19 "path": "../foo" |
| 20 } |
| 21 }), |
| 22 d.dir( |
| 23 "example", |
| 24 [ |
| 25 d.file("main.dart", 'myapp() => print("not entrypoint");'), |
| 26 d.dir( |
| 27 "sub", |
| 28 [d.file("main.dart", 'myapp() => print("not entrypoint");'
)])])]).create(); |
| 29 schedulePub( |
| 30 args: ["build", "--mode", "debug", "example"], |
| 31 output: new RegExp(r'Built \d+ files to "build".')); |
| 32 d.dir( |
| 33 appPath, |
| 34 [ |
| 35 d.dir( |
| 36 'build', |
| 37 [ |
| 38 d.dir( |
| 39 'example', |
| 40 [ |
| 41 d.file("main.dart", 'myapp() => print("not entrypoin
t");'), |
| 42 d.dir( |
| 43 'packages', |
| 44 [ |
| 45 d.dir( |
| 46 'foo', |
| 47 [ |
| 48 d.file('foo.dart', 'foo() => print("
hello");'), |
| 49 d.dir("sub", [d.file('bar.dart', 'ba
r() => print("hello");')])])]), |
| 50 d.dir( |
| 51 "sub", |
| 52 [ |
| 53 d.file("main.dart", 'myapp() => print("not e
ntrypoint");'), |
| 54 d.nothing("packages")])])])]).validate(); |
| 55 }); |
| 56 } |
OLD | NEW |