You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using istanbul 0.4.5 (with istanbul-lib-coverage 1.2.0 and istanbul-lib-instrument 1.10.1) to check coverage of my jasmine unit tests over my ES6 source, and I found a branches count which is not mentioned in your document.
If my function has a default value for input parameter, like this (this is a class used to create an AngularJS service):
This is an issue of istanbul itself, because the coverage should show what's the missing branch; anyway, I'm reporting it here as well in order for it to be pointed out in your document.
The text was updated successfully, but these errors were encountered:
I'm using istanbul 0.4.5 (with istanbul-lib-coverage 1.2.0 and istanbul-lib-instrument 1.10.1) to check coverage of my jasmine unit tests over my ES6 source, and I found a branches count which is not mentioned in your document.
If my function has a default value for input parameter, like this (this is a class used to create an AngularJS service):
Notice the default value for
setClientData
parameterobj
.If my test suite is:
The test run reports 1 branch not covered:
While, if I add a test case that makes
setClientData
use the default value forobj
parameter, like this:Test run reports full coverage:
This is an issue of istanbul itself, because the coverage should show what's the missing branch; anyway, I'm reporting it here as well in order for it to be pointed out in your document.
The text was updated successfully, but these errors were encountered: