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

Unified Diff: test/global/run/runs_transformer_test.dart

Issue 1523323004: Install barback from a hosted source in all tests. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Merge for real. Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/global/run/mode_test.dart ('k') | test/run/displays_transformer_logs_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/global/run/runs_transformer_test.dart
diff --git a/test/global/run/runs_transformer_test.dart b/test/global/run/runs_transformer_test.dart
index ac0489b9277fb9d765e670b19e5c8ff34d6f50ec..ec4c0fe18e6753b4494a229df2676783cc720772 100644
--- a/test/global/run/runs_transformer_test.dart
+++ b/test/global/run/runs_transformer_test.dart
@@ -25,20 +25,23 @@ class DartTransformer extends Transformer {
main() {
integration('runs a global script generated by a transformer', () {
- makeGlobalPackage("foo", "1.0.0", [
- d.pubspec({
- "name": "foo",
- "version": "1.0.0",
- "transformers": ["foo/src/transformer"]
- }),
- d.dir("lib", [d.dir("src", [
- d.file("transformer.dart", TRANSFORMER),
- d.file("primary.in", "")
- ])])
- ], pkg: ['barback']);
+ servePackages((builder) {
+ builder.serveRealPackage("barback");
+
+ builder.serve("foo", "1.0.0",
+ pubspec: {"transformers": ["foo/src/transformer"]},
+ deps: {"barback": "any"},
+ contents: [
+ d.dir("lib", [d.dir("src", [
+ d.file("transformer.dart", TRANSFORMER),
+ d.file("primary.in", "")
+ ])])
+ ]);
+ });
+
+ schedulePub(args: ["global", "activate", "foo"]);
var pub = pubRun(global: true, args: ["foo:script"]);
-
pub.stdout.expect("generated");
pub.shouldExit();
});
« no previous file with comments | « test/global/run/mode_test.dart ('k') | test/run/displays_transformer_logs_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698