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

How do I use babel-instabul with karma? #47

Closed fernandofleury closed 8 years ago

fernandofleury commented 8 years ago

Greetings. I would like to use it with karma. By default karma-coverage works with istanbul. Is there anything I could do in order to use babel-instanbul instead?

jeffrifwald commented 8 years ago

I'm not sure how karma-coverage works, but babel-istanbul is a drop in replacement for istanbul. If you can figure out how karma-coverage plugs in with istanbul, then you should be able to simply replace it.

mmahalwy commented 8 years ago

Any luck with this @fernandofleury ?

fernandofleury commented 8 years ago

@mmahalwy I've moved to https://github.com/deepsweet/babel-istanbul-loader