mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
$TINYTEST_FILTER to only run some tests
I have typed `if (! test.name.match(/foo/)) return` an average of 4 times a week for the past several years. No more.
This commit is contained in:
@@ -404,6 +404,10 @@ _.extend(TestManager.prototype, {
|
||||
throw new Error(
|
||||
"Every test needs a unique name, but there are two tests named '" +
|
||||
test.name + "'");
|
||||
if (process.env.TINYTEST_FILTER &&
|
||||
test.name.indexOf(process.env.TINYTEST_FILTER) === -1) {
|
||||
return;
|
||||
}
|
||||
self.tests[test.name] = test;
|
||||
self.ordered_tests.push(test);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user