| Index: test/run/doesnt_load_an_unnecessary_transformer_test.dart
|
| diff --git a/test/run/doesnt_load_an_unnecessary_transformer_test.dart b/test/run/doesnt_load_an_unnecessary_transformer_test.dart
|
| index e902bff21ef3226d2663ae7cdf893c2a9c4da6da..d993314addea4df0fe446a8378f04bcbcd02f325 100644
|
| --- a/test/run/doesnt_load_an_unnecessary_transformer_test.dart
|
| +++ b/test/run/doesnt_load_an_unnecessary_transformer_test.dart
|
| @@ -23,30 +23,33 @@ class BrokenTransformer extends Transformer {
|
| """;
|
|
|
| main() {
|
| - integration("doesn't load an unnecessary transformer", () {
|
| - d.dir(appPath, [
|
| - d.pubspec({
|
| - "name": "myapp",
|
| - "transformers": [
|
| - {"myapp/src/transformer": {r"$include": "lib/myapp.dart"}}
|
| - ]
|
| - }),
|
| - d.dir("lib", [
|
| - d.file("myapp.dart", ""),
|
| - d.dir("src", [d.file("transformer.dart", TRANSFORMER)])
|
| - ]),
|
| - d.dir("bin", [
|
| - d.file("hi.dart", "void main() => print('Hello!');")
|
| - ])
|
| - ]).create();
|
| -
|
| - createLockFile('myapp', pkg: ['barback']);
|
| -
|
| - // This shouldn't load the transformer, since it doesn't transform
|
| - // anything that the entrypoint imports. If it did load the transformer,
|
| - // we'd know since it would throw an exception.
|
| - var pub = pubRun(args: ["bin/hi"]);
|
| - pub.stdout.expect("Hello!");
|
| - pub.shouldExit();
|
| - });
|
| + integration("doesn't load an unnecessary transformer", () {
|
| + serveBarback();
|
| +
|
| + d.dir(appPath, [
|
| + d.pubspec({
|
| + "name": "myapp",
|
| + "transformers": [
|
| + {"myapp/src/transformer": {r"$include": "lib/myapp.dart"}}
|
| + ],
|
| + "dependencies": {"barback": "any"}
|
| + }),
|
| + d.dir("lib", [
|
| + d.file("myapp.dart", ""),
|
| + d.dir("src", [d.file("transformer.dart", TRANSFORMER)])
|
| + ]),
|
| + d.dir("bin", [
|
| + d.file("hi.dart", "void main() => print('Hello!');")
|
| + ])
|
| + ]).create();
|
| +
|
| + pubGet();
|
| +
|
| + // This shouldn't load the transformer, since it doesn't transform
|
| + // anything that the entrypoint imports. If it did load the transformer,
|
| + // we'd know since it would throw an exception.
|
| + var pub = pubRun(args: ["bin/hi"]);
|
| + pub.stdout.expect("Hello!");
|
| + pub.shouldExit();
|
| + });
|
| }
|
|
|