vistaprint / grunt-js-test

Grunt plugin to run client-side, mocha unit tests and generate code coverage reports
10 stars 11 forks source link

Fix timeout issue running coverage on empty test files. #20

Closed marcstober closed 8 years ago

marcstober commented 8 years ago

After upgrading from 1.5.7 to 1.5.9 we started getting timeout errors. Upon investigation we found that this occurred when (a) we used the --coverage option and (b) we were running tests on a test file that didn't created any tests (created as a stub).

This pull request fixes the issue and also adds an empty file to an example project for testing.