blob: 65c75b966bb857ef493ad57cad54b284fabcf08f [file] [log] [blame]
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import '../descriptor.dart' as d;
import '../test_pub.dart';
import 'utils.dart';
main() {
initConfig();
integration('runs a named Dart application in a dev dependency', () {
d.dir("foo", [
d.libPubspec("foo", "1.0.0"),
d.dir("bin", [
d.file("bar.dart", "main() => print('foobar');")
])
]).create();
d.dir(appPath, [
d.pubspec({
"name": "myapp",
"dev_dependencies": {
"foo": {"path": "../foo"}
}
})
]).create();
pubGet();
var pub = pubRun(args: ["foo:bar"]);
pub.stdout.expect("foobar");
pub.shouldExit();
});
}