Skip to main content

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?

Status: Answered1 comment

Log in to comment and vote

Comments1

  • Stephen

    Team

    Line coverage is always uploaded regardless so you should be able to achieve this by uploading the file only once.

    For reference, cs-coverage upload can 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-coverage and something else you only need to upload something else as the line-coverage is uploaded anyway. Hope this helps!