Description
I have updated my projects to use the new MSTest SDK:
- <Project Sdk="Microsoft.NET.Sdk">
+ <Project Sdk="MSTest.Sdk/3.4.1">
...
and I have the following task in my Azure Pipeline (I know the Azure tasks are a different repo, but bear with me):
- task: DotNetCoreCLI@2
inputs:
command: 'test'
projects: '**/**.sln'
arguments: '--configuration Release'
which seems to translate to this command when it's actually run:
"C:\Program Files\dotnet\dotnet.exe" test D:\a\1\s\MySolution.sln --logger trx --results-directory D:\a\_temp --configuration Release
This used to result in a "Tests" tab appearing on the pipeline's run page with a nice UI of all the tests that were run and whether they passed or not. After the change to the MSTest.Sdk, this no longer appears and I also get this warning, which I think is related:
##[warning]No test result files were found.
I have searched the issues in this repo for any clue as to how to fix this. I've seen some mention of the trx
part possibly being the culprit, so I followed the suggestion to add this to my csproj:
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="1.0.0" />
but this doesn't seem to make a difference.
Could you point me in the right direction to get this working? Or is it something that the Azure Pipelines team will need to fix on their end? Many thanks.