-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[BUG]: Inconsistency in displaying code coverage with PublishCodeCoverageResults #19221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm seeing similar behaviour insofar as I only see the basic coverage report on a successful build, even though the detailed report has been uploaded as an artefact on the build. |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
The comment to remove 'stale' label |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Still exists |
Task name
PublishCodeCoverageResults
Task version
2
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu
Task log
Relevant log output
Aditional info
I'm observing discrepancy in how Code Coverage reports are displayed when build finishes normally and when interrupted (cancelled).
Configuration:
Task configuration:
Coverlet configuration:
Case 1: normal build
Scenario: build runs to the end and is not interrupted.
PublishCodeCoverageResults task generates code coverage reports and uploads into builds artifacts store
Basic code coverage info is then visible on build summary page. Detailed info from generated html files are not shown on the tab:

On build summary page code coverage percentage is displayed correctly:

Case 2: cancelled build
Scenario: build is manually cancelled after PublishCodeCoverageResults task is executed.
PublishCodeCoverageResults task generates code coverage reports and uploads into builds artifacts store
Task execution logs and produced artifacts are exactly the same as in Case 1.
Now Code Coverage info on build summary page is displayed from htmls generated by PublishCodeCoverageResults task

On build summary page code coverage percentage value is invalid, however report shows correct coverage percentage

The text was updated successfully, but these errors were encountered: