OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS 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 library pub_tests; | 5 library pub_tests; |
6 | 6 |
7 import 'package:pub/src/exit_codes.dart' as exit_codes; | 7 import 'package:pub/src/exit_codes.dart' as exit_codes; |
8 | 8 |
9 import '../../descriptor.dart' as d; | 9 import '../../descriptor.dart' as d; |
10 import '../../test_pub.dart'; | 10 import '../../test_pub.dart'; |
11 | 11 |
12 main() { | 12 main() { |
13 initConfig(); | |
14 | |
15 // Regression test for issue 22194. | 13 // Regression test for issue 22194. |
16 integration('gets a dependency with broken dev dependencies from a pub ' | 14 integration('gets a dependency with broken dev dependencies from a pub ' |
17 'server', () { | 15 'server', () { |
18 servePackages((builder) { | 16 servePackages((builder) { |
19 builder.serve("foo", "1.2.3", pubspec: { | 17 builder.serve("foo", "1.2.3", pubspec: { |
20 "dev_dependencies": { | 18 "dev_dependencies": { |
21 "busted": {"not a real source": null} | 19 "busted": {"not a real source": null} |
22 } | 20 } |
23 }); | 21 }); |
24 }); | 22 }); |
25 | 23 |
26 d.appDir({"foo": "1.2.3"}).create(); | 24 d.appDir({"foo": "1.2.3"}).create(); |
27 | 25 |
28 pubGet(); | 26 pubGet(); |
29 | 27 |
30 d.cacheDir({"foo": "1.2.3"}).validate(); | 28 d.cacheDir({"foo": "1.2.3"}).validate(); |
31 d.packagesDir({"foo": "1.2.3"}).validate(); | 29 d.packagesDir({"foo": "1.2.3"}).validate(); |
32 }); | 30 }); |
33 } | 31 } |
OLD | NEW |