HTML report
Karma also generates an HTML report that shows exactly what lines were tested. The Jenkins report already shows pretty much the same, but I prefer the Karma report. Besides, I want to show you how to publish HTML reports. You can publish pretty much any HTML page. First, we need to install an additional plugin. Go to the plugin manager, find the HTML Publisher plugin (https://wiki.jenkins-ci.org/display/JENKINS/HTML+Publisher+Plugin), and install it. After that, go back to your project configuration. You can now add another post-build action, Publish HTML Reports. You will get a box where you can add reports, so you can only add the action once, but then add as many reports as you like. So, add one and specify test/coverage/html ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access