OLD | NEW |
(Empty) | |
| 1 import '../descriptor.dart' as d; |
| 2 import '../test_pub.dart'; |
| 3 main() { |
| 4 initConfig(); |
| 5 integration("cleans entire build directory before a build", () { |
| 6 d.dir( |
| 7 appPath, |
| 8 [ |
| 9 d.appPubspec(), |
| 10 d.dir('example', [d.file('file.txt', 'example')]), |
| 11 d.dir('test', [d.file('file.txt', 'test')])]).create(); |
| 12 schedulePub( |
| 13 args: ["build", "example"], |
| 14 output: new RegExp(r'Built 1 file to "build".')); |
| 15 schedulePub( |
| 16 args: ["build", "test"], |
| 17 output: new RegExp(r'Built 1 file to "build".')); |
| 18 d.dir( |
| 19 appPath, |
| 20 [ |
| 21 d.dir( |
| 22 'build', |
| 23 [ |
| 24 d.nothing('example'), |
| 25 d.dir('test', [d.file('file.txt', 'test')])])]).validate(); |
| 26 }); |
| 27 } |
OLD | NEW |