mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix test-packages * if some packages lack tests
Fixes #3334.
This was an intentional but poorly thought through change in
1.0.2 (1a9536baa).
This commit is contained in:
@@ -1470,10 +1470,11 @@ var getTestPackageNames = function (projectContext, packageNames) {
|
||||
}
|
||||
if (version.testName) {
|
||||
testPackages.push(version.testName);
|
||||
} else {
|
||||
// This case only happens when explicitly asked for.
|
||||
buildmessage.error("Package has no tests");
|
||||
}
|
||||
// It is not an error to mention a package by directory that is a
|
||||
// package but has no tests; this means you can run `meteor
|
||||
// test-packages $APP/packages/*` without having to worry about the
|
||||
// packages that don't have tests.
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user