Index: pkg/polymer/lib/deploy.dart |
diff --git a/pkg/polymer/lib/deploy.dart b/pkg/polymer/lib/deploy.dart |
index a28869fdf586675450c885a5fe96c70b8261f0a4..13ed25cd7e09ddd42ceb5658148b5864b99af560 100644 |
--- a/pkg/polymer/lib/deploy.dart |
+++ b/pkg/polymer/lib/deploy.dart |
@@ -72,14 +72,15 @@ BarbackOptions _createTestOptions(String testFile, String outDir, |
'your package root directory or a subdirectory.'); |
return null; |
} |
+ var packageName = readCurrentPackageFromPubspec(pubspecDir); |
var phases = createDeployPhases(new TransformOptions( |
entryPoints: [path.relative(testFile, from: pubspecDir)], |
directlyIncludeJS: directlyIncludeJS, |
contentSecurityPolicy: contentSecurityPolicy)); |
return new BarbackOptions(phases, outDir, |
- currentPackage: '_test', |
- packageDirs: {'_test' : pubspecDir}, |
+ currentPackage: packageName, |
+ packageDirs: {packageName : pubspecDir}, |
transformTests: true); |
} |