Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: test/validator/executable_test.dart

Issue 1310253007: Make pub lish validation gitignore-aware. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: analysis hints Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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:pub/src/entrypoint.dart'; 5 import 'package:pub/src/entrypoint.dart';
6 import 'package:pub/src/validator.dart'; 6 import 'package:pub/src/validator.dart';
7 import 'package:pub/src/validator/executable.dart'; 7 import 'package:pub/src/validator/executable.dart';
8 import 'package:scheduled_test/scheduled_test.dart'; 8 import 'package:scheduled_test/scheduled_test.dart';
9 9
10 import '../descriptor.dart' as d; 10 import '../descriptor.dart' as d;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 "name": "test_pkg", 44 "name": "test_pkg",
45 "version": "1.0.0", 45 "version": "1.0.0",
46 "executables": { 46 "executables": {
47 "nope": "not_there", 47 "nope": "not_there",
48 "nada": null 48 "nada": null
49 } 49 }
50 }) 50 })
51 ]).create(); 51 ]).create();
52 expectValidationWarning(executable); 52 expectValidationWarning(executable);
53 }); 53 });
54
55 integration('has .gitignored one or more listed executables', () {
56 d.git(appPath, [
57 d.pubspec({
58 "name": "test_pkg",
59 "version": "1.0.0",
60 "executables": {
61 "one": "one_script",
62 "two": null
63 }
64 }),
65 d.dir("bin", [
66 d.file("one_script.dart", "main() => print('ok');"),
67 d.file("two.dart", "main() => print('ok');")
68 ]),
69 d.file(".gitignore", "bin")
70 ]).create();
71 expectValidationWarning(executable);
72 });
54 }); 73 });
55 } 74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698