Improve testing coverage for the Jade CLI application #1805
This PR can be understood to have two parts:
Improving test coverage
For the first part, I have added tests for:
Test coverage report
For the second part I had to use some "hacks" and workarounds, because, unfortunately, istanbul is not as flexible as I would like it to be:
There is also the problem for the watching mode test: when passing
With the changes applied, one can see that the coverage for
A separate dep just for
I intentionally changed that because I would want my coverage to run even if my test failed.
This is understandable, but then there are platforms like Debian where you have to use
We should see if we can get something useful merged in to Istanbul upstream to make this easier for other people to do (and reduce the amount of code we have to maintain as part of jade)
Other than that one small point, this looks good.