There is a bug in the Microsoft (R) Test Execution Command Line Tool Version 17.4.0 and we like to use 17.3.1.
We are doing dotnet test
in our Azure Pipeline:
- task: UseDotNet@2
displayName: 'Use .NET 6'
inputs:
packageType: 'sdk'
version: '6.0.x'
# build tasks etc.
- task: DotNetCoreCLI@2
displayName: Run Unit Tests
inputs:
command: 'test'
projects: '$(testProjects)'
# ... more config
But for some reason, this gives us sometimes 17.4.0 and sometimes 17.3.1 - even with the same code (rebuild of the same commit). This is probably because our build agents are shared with other teams.
Is there a way to force the version 17.3.1 of Test Execution Command Line Tool?
Background info
For the issue, see microsoft/vstest - issue #4140 - 17.4.0 Breaks pipeline code coverage