I have problem when merge coverage report Jest and mocha. Currently I can export each of them. Any solution for this?
Coverage Jest:
I have problem when merge coverage report Jest and mocha. Currently I can export each of them. Any solution for this?
Coverage Jest:
How I was doing it:
1) get mocha and jest (I was using different technologies) to generate lcov files as output. You've gotta check the corresponding documentation, but lcov is one of the standard output options for many system
2) merge it with one of the tools. I was using linux lcov I think. Here is the script extract:
3) Now you have your common.info file, that has the joint coverage data from both runs. All you need to do, is to visualize it somehow. I'd suggest using sonar, as it also does static code analysis for you. You will have to create configuration that points to the source and to the coverage. And, ofc, you will have to run an instance of the sonar server (could be done in virtual machine or/and with docker).
https://www.sonarqube.org/