vstest
vstest copied to clipboard
Unhelpful warning messages showing up in Azure Pipelines: "Warning: Test Impact (Run only Impacted tests) and Code Coverage data collector will not work."
These Warning messages started showing up in our Azure DevOps Pipeline runs:
Warning: Test Impact (Run only Impacted tests) and Code Coverage data collector will not work.
We are not trying to use Code Coverage, so these warnings are just noise.
The relevant yml in the Pipeline definition looks like this:
- task: VisualStudioTestPlatformInstaller@1
inputs:
versionSelector: latestStable
- task: VSTest@2
displayName: 'VsTest'
inputs:
testAssemblyVer2: '$(testPayloadDir)\Test.*.dll'
vsTestVersion: toolsInstaller
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
uiTests: true
rerunFailedTests: true
Hi there.
@kmahone did you find a way to hide these warnings? I just upgraded from using vstest.console.exe from VS 2019 (because the hosted agent still does not support VS 2022) and I now receive these warnings.
I have found a similar issue on the azure pipeline tasks repo and a feedback on the developer community which simply suggest to rollback to vstest.console.exe v16.
Is someone from the team aware of this problem? It seems that some users have already reverted migration to vstest.console.exe v17 because of this.
I will move forward by closing this issue as the message is coming from vstest task and not our repository. Please follow https://github.com/microsoft/azure-pipelines-tasks/issues/15449