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; | |
8 | |
9 import '../../descriptor.dart' as d; | 7 import '../../descriptor.dart' as d; |
10 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
11 | 9 |
12 main() { | 10 main() { |
13 // Regression test for issue 22194. | 11 // Regression test for issue 22194. |
14 integration('gets a dependency with broken dev dependencies from a pub ' | 12 integration('gets a dependency with broken dev dependencies from a pub ' |
15 'server', () { | 13 'server', () { |
16 servePackages((builder) { | 14 servePackages((builder) { |
17 builder.serve("foo", "1.2.3", pubspec: { | 15 builder.serve("foo", "1.2.3", pubspec: { |
18 "dev_dependencies": { | 16 "dev_dependencies": { |
19 "busted": {"not a real source": null} | 17 "busted": {"not a real source": null} |
20 } | 18 } |
21 }); | 19 }); |
22 }); | 20 }); |
23 | 21 |
24 d.appDir({"foo": "1.2.3"}).create(); | 22 d.appDir({"foo": "1.2.3"}).create(); |
25 | 23 |
26 pubGet(); | 24 pubGet(); |
27 | 25 |
28 d.cacheDir({"foo": "1.2.3"}).validate(); | 26 d.cacheDir({"foo": "1.2.3"}).validate(); |
29 d.packagesDir({"foo": "1.2.3"}).validate(); | 27 d.packagesDir({"foo": "1.2.3"}).validate(); |
30 }); | 28 }); |
31 } | 29 } |
OLD | NEW |