Add -g flag to run only tests matching a pattern (grep)

(Actually, it's only matching strings for me, not patterns, but according to
Mocha it's supposed to compile the patterns using RegExp.)
This commit is contained in:
Dan Stillman 2015-05-31 03:27:03 -04:00
parent 420985661b
commit fd45032210
3 changed files with 12 additions and 14 deletions

View file

@ -79,7 +79,8 @@ function Reporter(runner) {
mocha.setup({
ui: "bdd",
reporter: Reporter,
timeout: 5000
timeout: 5000,
grep: ZoteroUnit.grep
});
// Enable Bluebird generator support in Mocha