loading...

Show Karma/Instanbul Code Coverage on the Browser

nombrekeff profile image Manolo Edge Updated on ・1 min read

From https://stackoverflow.com/posts/62264891/edit

I'm trying to launch the code coverage result generated by Istambul in the same browser as Karma test results.

I see that Karma or Istambul is generating a folder named coverage (when running --codeCoverage) which contains an HTML page containing all coverage results, but I have to open it manually. Is it possible that this page is opened in a similar way to the test results from Karma?

I've looked all over the place but could not find any way of accomplishing it without 3rd party tools.

This is the Karma test results, I would like the coverage to be opened here as well.
Karma test result preview

Project info

ng-cli: 8.3.23

Angular: 8.2.14

Karma: 4.1.0

Discussion

pic
Editor guide