我正在使用Azure DevOps来运行Asp.Net Core应用程序的一些XUnit测试:
- task: DotNetCoreCLI@2
displayName: 'Test'
inputs:
command: test
projects: '**/*[Tt]est/*.csproj'
arguments: '--configuration $(buildConfiguration)'
任务成功但我得到两个警告:
[warning] Invalid results file. Make sure the result format of the file '/home/vsts/work/_temp/_fv-az592_2019-04-09_21_14_05.trx' matches 'VSTest' test results format.
[warning] Invalid results file. Make sure the result format of the file '/home/vsts/work/_temp/_fv-az592_2019-04-09_21_14_10.trx' matches 'VSTest' test results format.
我错过了什么?
来自github:
警告是根据我们的任务设计,因为我们想要警告客户,如果他试图使用PTR任务没有任何结果,但我同意你关于更贴切的警告信息,我们将在即将发布的版本中纠正它。
也尝试使用VSTest task代替