Chromium Code Reviews

Side by Side Diff: test/global/run/nonexistent_script_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 import 'package:path/path.dart' as p; 5 import 'package:path/path.dart' as p;
6 import 'package:pub/src/exit_codes.dart' as exit_codes; 6 import 'package:pub/src/exit_codes.dart' as exit_codes;
7 7
8 import '../../test_pub.dart'; 8 import '../../test_pub.dart';
9 9
10 main() { 10 main() {
11 initConfig();
12 integration('errors if the script does not exist.', () { 11 integration('errors if the script does not exist.', () {
13 servePackages((builder) => builder.serve("foo", "1.0.0")); 12 servePackages((builder) => builder.serve("foo", "1.0.0"));
14 13
15 schedulePub(args: ["global", "activate", "foo"]); 14 schedulePub(args: ["global", "activate", "foo"]);
16 15
17 var pub = pubRun(global: true, args: ["foo:script"]); 16 var pub = pubRun(global: true, args: ["foo:script"]);
18 pub.stderr.expect("Could not find ${p.join("bin", "script.dart")}."); 17 pub.stderr.expect("Could not find ${p.join("bin", "script.dart")}.");
19 pub.shouldExit(exit_codes.NO_INPUT); 18 pub.shouldExit(exit_codes.NO_INPUT);
20 }); 19 });
21 } 20 }
OLDNEW

Powered by Google App Engine