OLD | NEW |
(Empty) | |
| 1 import 'package:path/path.dart' as path; |
| 2 import 'package:scheduled_test/scheduled_test.dart'; |
| 3 import '../../lib/src/exit_codes.dart' as exit_codes; |
| 4 import '../../lib/src/io.dart'; |
| 5 import '../descriptor.dart' as d; |
| 6 import '../test_pub.dart'; |
| 7 main() { |
| 8 initConfig(); |
| 9 integration("reports the pubspec path when there is an error in it", () { |
| 10 d.dir(appPath, [d.file("pubspec.yaml", "some bad yaml")]).create(); |
| 11 schedulePub(args: ["list-package-dirs", "--format=json"], outputJson: { |
| 12 "error": contains('Error on line 1'), |
| 13 "path": canonicalize(path.join(sandboxDir, appPath, "pubspec.yaml")) |
| 14 }, exitCode: exit_codes.DATA); |
| 15 }); |
| 16 } |
OLD | NEW |