How do I upload Branch and Line Coverage
If for a given repo, we want to have both branch and line coverage and our coverage.xml contains both - is the process to run the upload action twice for the same file both with different --metric options?
If for a given repo, we want to have both branch and line coverage and our coverage.xml contains both - is the process to run the upload action twice for the same file both with different --metric options?
Log in to comment and vote
Comments1
Stephen
Line coverage is always uploaded regardless so you should be able to achieve this by uploading the file only once.
For reference,
cs-coverage uploadcan upload only one metric at a time so if you want more then one metric you need to do multiple uploads.In this case , If you want to upload
line-coverageandsomething elseyou only need to uploadsomething elseas theline-coverageis uploaded anyway. Hope this helps!