asciidisco / grunt-qunit-istanbul

Run QUnit unit tests in a headless PhantomJS instance & generate some nice code coverage metrics using Istanbul.
MIT License
33 stars 21 forks source link

Coverage reports are not generated when tests fail #38

Closed Lipata closed 9 years ago

Lipata commented 9 years ago

I don't know if this is the default behavior or can be configured, but when some of the tests fails, then the coverage reports are not generated.

Thanks in advance!

Lipata commented 9 years ago

I've added such a functionality - by setting the reportOnFail property to true. Тhis should be available in a version higher than 0.4.5.

qunit: {
    options: {
        coverage: {
            reportOnFail: true,
        }
    }
}