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

Does this work with Angular directives? #564

Open moneytree-doug opened 8 years ago

moneytree-doug commented 8 years ago

I tried the karma-coverage using istanbul, and I targeted my source files directory, but I get blank results {}. Has anyone successfully gotten code coverage to work with AngularJS directives?

jannhama commented 8 years ago

Yes we have but have other issues with file output

moneytree-doug commented 8 years ago

@jannhama What does your karma configuration look like?

jannhama commented 8 years ago

Nothing special in our karma-config. lcov is disabled in reporters since it outputs stuff to wrong place in our setup. karma.txt

winnemucca commented 8 years ago

@moneytree-doug did you get this to work?