OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.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 import 'package:pub/src/exit_codes.dart' as exit_codes; |
5 import 'package:scheduled_test/scheduled_test.dart'; | 6 import 'package:scheduled_test/scheduled_test.dart'; |
6 | 7 |
7 import '../../lib/src/exit_codes.dart' as exit_codes; | |
8 import '../test_pub.dart'; | 8 import '../test_pub.dart'; |
9 | 9 |
10 /// Runs separate integration tests for "pub build", "pub serve", and | 10 /// Runs separate integration tests for "pub build", "pub serve", and |
11 /// "pub build --format json" and validates that in all cases, it fails with | 11 /// "pub build --format json" and validates that in all cases, it fails with |
12 /// an expected error message and exits with [exitCode]. | 12 /// an expected error message and exits with [exitCode]. |
13 /// | 13 /// |
14 /// The integrations assume set up is already done, so you will likely want to | 14 /// The integrations assume set up is already done, so you will likely want to |
15 /// call [setUp] before this. | 15 /// call [setUp] before this. |
16 /// | 16 /// |
17 /// If [error] is provided, then both pub build and pub serve should exit with | 17 /// If [error] is provided, then both pub build and pub serve should exit with |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 }, | 51 }, |
52 exitCode: exitCode); | 52 exitCode: exitCode); |
53 }); | 53 }); |
54 | 54 |
55 integration("serve fails $description", () { | 55 integration("serve fails $description", () { |
56 schedulePub(args: ["serve"]..addAll(args), | 56 schedulePub(args: ["serve"]..addAll(args), |
57 error: serveExpectation, | 57 error: serveExpectation, |
58 exitCode: exitCode); | 58 exitCode: exitCode); |
59 }); | 59 }); |
60 } | 60 } |
OLD | NEW |