jeffrifwald / babel-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
144 stars 23 forks source link

Unexpected Class Branch Coverage #17

Closed bassettsj closed 9 years ago

bassettsj commented 9 years ago

Hey great work no getting this out!

I am getting unexpected coverage reported:

Screenshot showing branch coverage

It is showing that the "else" paths are not being taken here.

jeffrifwald commented 9 years ago

Maybe try adding the --use-babel-runtime flag. That will tell the compiler to use the helper library instead of defining functions at the top of every file.

bassettsj commented 9 years ago

@jmcriffey Sorry I messed up the integration with karma and browserify. It is fine after all.