Karma and code coverage

Anyone know if Karma test runner is displays the code coverage output? Is that not in th eplugin. When I run the karma plugin I do not get the coverage output normally a table nor the color highlighting. I am using Jasmine tests,
Thanks

2 comments

Hello!

yes, it does. Do you have karma-coverage node package installed near karma package (npm install -g karma-coverage)? Is coverage configured in your karma config? Can you check if coverage report is generated when running karma via node.js like 'start –log-level=debug –runners coverage my.conf.js'?

I'm attaching a simple sample project that works for me - please select the 'karma_Coverage' run configuration and use 'run with coverage' toolbar button to execute it



Attachment(s):
karma_jasmine.zip
0

Thanks Elena this was the help I needed. Everythig is working now. Did not realize there was a plugin I had to install and configure.

0

Please sign in to leave a comment.