I am generating code coverage using Karma-coverage. I can host my output coverage folder on http-server and view it locally.
How do I make this report visible on VSTS code coverage tab?
Do I need to re-format my coverage result in VSTS compatible?
I have read about vsts-tasks, but I have no clue how to achieve the same.
Any help is appreciated.
VSTS Code coverage supports the outputted code coverage results in Jacoco or Cobertura formats. Karma-Coverage supports Cobertura format. Edit your karma.config.js for
karma-coverage:
karma-remap-istanbul:
karma-remap-coverage:
Once you configure the output format, you can use Publish Code Coverage task to upload code coverage data to VSTS.