gotwarlost / istanbul

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k stars 786 forks source link

0/0 Coverage Shows 100% #675

Open mrobillard opened 8 years ago

mrobillard commented 8 years ago

If there are zero branches, Istanbul calculates a branch coverage of 100%. Though this would not affect the aggregate count, it shouldn't display as 100%.

screen shot 2016-08-04 at 1 19 34 pm
seflless commented 7 years ago

This is still happening for me too. What's the thought on this design decision?