无效的结果文件运行Azure DevOps测试任务时出现警告

问题描述 投票:0回答:1

我正在使用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.

我错过了什么?

asp.net-core azure-devops asp.net-core-2.0 azure-pipelines
1个回答
0
投票

来自github

警告是根据我们的任务设计,因为我们想要警告客户,如果他试图使用PTR任务没有任何结果,但我同意你关于更贴切的警告信息,我们将在即将发布的版本中纠正它。

也尝试使用VSTest task代替

© www.soinside.com 2019 - 2024. All rights reserved.