-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
VsTest Code Coverage is not published as artifact #14795
Comments
Anybody have any updates about this? |
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 no updates?! |
You can resolve this in two ways: First, directly with DotNetCoreCLI task:
Or without publishTestResults: true, but using PublishCodeCoverageResults. You can check here an example: microsoft/vstest#981 (comment) |
Thanks for the suggestion, but I'm running .NET Framework, not .NET Core |
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 |
Comment to keep issue open |
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 |
Type: Bug
Task name: VSTest
Environment
Server: Azure Pipelines
Account name, team project name, build definition name/build number: Can be provided on demand. I do not want to share business information here.
Agent: Private
Issue Description
I have a Visual Studio Test task in my build pipeline:
As you can see, Code Coverage is enabled. In the logs I can see that the .coverage file is generated, but it is never published in the artifact for the pipeline, nor is it parsed by the pipeline (there is no "code coverage" tab visible in the finished pipeline).
This is somewhat related to #11677 but not excatly the same.
Task logs
Debug log. I have edited out business critical information:
UnitTestDebugOutput.txt
From this log it certainly looks like the .coverage file is published, but it still does not appear inside the "1 published; 1 consumed" artifacts, and the "code coverage" tab is not visible (and it still only says "Setup code coverage" instead of displaying the actual results).
It actually looks like it's trying to publish a different file location than what has been generated. These two does not match:
The text was updated successfully, but these errors were encountered: