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('snapshots the executables for a Git repo', () { |
| 7 ensureGit(); |
| 8 d.git( |
| 9 'foo.git', |
| 10 [ |
| 11 d.libPubspec("foo", "1.0.0"), |
| 12 d.dir( |
| 13 "bin", |
| 14 [ |
| 15 d.file("hello.dart", "void main() => print('hello!');"), |
| 16 d.file("goodbye.dart", "void main() => print('goodbye!');"), |
| 17 d.file("shell.sh", "echo shell"), |
| 18 d.dir( |
| 19 "subdir", |
| 20 [d.file("sub.dart", "void main() => print('sub!');")])])
]).create(); |
| 21 schedulePub( |
| 22 args: ["global", "activate", "-sgit", "../foo.git"], |
| 23 output: allOf( |
| 24 [contains('Precompiled foo:hello.'), contains("Precompiled foo:goodb
ye.")])); |
| 25 d.dir( |
| 26 cachePath, |
| 27 [ |
| 28 d.dir( |
| 29 'global_packages', |
| 30 [ |
| 31 d.dir( |
| 32 'foo', |
| 33 [ |
| 34 d.matcherFile('pubspec.lock', contains('1.0.0')), |
| 35 d.dir( |
| 36 'bin', |
| 37 [ |
| 38 d.matcherFile('hello.dart.snapshot', contain
s('hello!')), |
| 39 d.matcherFile('goodbye.dart.snapshot', conta
ins('goodbye!')), |
| 40 d.nothing('shell.sh.snapshot'), |
| 41 d.nothing('subdir')])])])]).validate(); |
| 42 }); |
| 43 } |
OLD | NEW |