yaymukund/grunt-simple-mocha

Recursive config option seems not to work

Closed this issue · 2 comments

sebs commented

Mocha has a recursive option, if I add recursive:true to the config options there is a nother set of tests run as if i do mocha --recursive on the command line

Mocha only supports a couple options when invoked programmatically, so there's not much we can do about this.

That said, I think you can do this with wildcards in the src. For example:

simplemocha: {
  all: {src: 'test/**/*.js'}
}

That should be the same as running mocha --recursive test/ from the command line.

Thanks for taking the time to open an issue :) I'm gonna close this based on my answer above, but feel free to reopen if you think there's something I overlooked.