| Index: sdk/lib/_internal/pub/test/run/runs_named_app_in_dev_dependency_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/run/passes_along_arguments_test.dart b/sdk/lib/_internal/pub/test/run/runs_named_app_in_dev_dependency_test.dart
|
| similarity index 50%
|
| copy from sdk/lib/_internal/pub/test/run/passes_along_arguments_test.dart
|
| copy to sdk/lib/_internal/pub/test/run/runs_named_app_in_dev_dependency_test.dart
|
| index 888319e4358739c7fc13d653fba1f1abbb84e195..65c75b966bb857ef493ad57cad54b284fabcf08f 100644
|
| --- a/sdk/lib/_internal/pub/test/run/passes_along_arguments_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/run/runs_named_app_in_dev_dependency_test.dart
|
| @@ -6,27 +6,29 @@ import '../descriptor.dart' as d;
|
| import '../test_pub.dart';
|
| import 'utils.dart';
|
|
|
| -const SCRIPT = """
|
| -main(List<String> args) {
|
| - print(args.join(" "));
|
| -}
|
| -""";
|
| -
|
| main() {
|
| initConfig();
|
| - integration('passes arguments to the spawned script', () {
|
| - d.dir(appPath, [
|
| - d.appPubspec(),
|
| + integration('runs a named Dart application in a dev dependency', () {
|
| + d.dir("foo", [
|
| + d.libPubspec("foo", "1.0.0"),
|
| d.dir("bin", [
|
| - d.file("args.dart", SCRIPT)
|
| + d.file("bar.dart", "main() => print('foobar');")
|
| ])
|
| ]).create();
|
|
|
| - // Use some args that would trip up pub's arg parser to ensure that it
|
| - // isn't trying to look at them.
|
| - var pub = pubRun(args: ["args", "--verbose", "-m", "--", "help"]);
|
| + d.dir(appPath, [
|
| + d.pubspec({
|
| + "name": "myapp",
|
| + "dev_dependencies": {
|
| + "foo": {"path": "../foo"}
|
| + }
|
| + })
|
| + ]).create();
|
| +
|
| + pubGet();
|
|
|
| - pub.stdout.expect("--verbose -m -- help");
|
| + var pub = pubRun(args: ["foo:bar"]);
|
| + pub.stdout.expect("foobar");
|
| pub.shouldExit();
|
| });
|
| }
|
|
|