I\'ve configured Karma to report the coverage of my JavaScript code. Here is the part of the configuration in the karma.conf.js file:
karma.conf.js
coverageRe
You could run a script that does: cat lcov.info | egrep "^(SF|DA|BRDA):" > lcov.info.new; mv lcov.info.new lcov.info.
cat lcov.info | egrep "^(SF|DA|BRDA):" > lcov.info.new; mv lcov.info.new lcov.info
With that I get:
SF:./app/scripts/app.js DA:2,1 DA:20,1 DA:29,0 DA:34,0