How to set up test coverage in a JS monorepo?

Every project produces its own cobertura-coverage.xml file, can I just use the deepsource CLI to push each of them? Or do I need to merge them somehow?

Found this now, so I guess this is coming soon

http://deepsource.canny.io/feature-requests/p/support-for-multiple-test-coverage-reports

Hey @azzlack! Yes, automatically merging multiple coverage reports is on our roadmap. However, you can merge the reports yourself and send the final report to DeepSource for the time being. The cobertura-merge package could be useful — although there are several other ways of doing it.

Forgot to say thanks for this tip. Using cobertura-merge worked perfectly :slight_smile:

1 Like