kmiyashiro / grunt-mocha

[MOVED] Grunt task for running mocha specs in a headless browser (PhantomJS)
MIT License
370 stars 106 forks source link

Added option to fail if no tests are run #155

Open chrisroush opened 8 years ago

chrisroush commented 8 years ago

I was having an issue where errors thrown by my test.html would cause mocha tests to not run. This would cause my CI to report a successful build, perhaps incorrectly.

This PR adds an option failOnNoTests which will cause the task to fail if no tests are run.

chrisroush commented 8 years ago

Might be nice to have the option, but default to true?