Seb*_*ber 5 xunit vstest azure-devops azure-pipelines-release-pipeline .net-core-2.1
我正在尝试在 VSTS 中创建一个发布管道,该管道运行我的 xUnit-tests,如Test Plan.
长话短说:我无法让它工作。
我正在使用什么:
在 Azure DevOps 中,我定义了一个Test Plan,其中包含一个Test Suite,其中包含一个Test,其中有一个Associated Automation指向我的 xUnit 测试。我必须使用 REST API 将测试代码链接到此处Test所述。
Test我可以在 VSTest 任务的可视化设计器中选择它。
当我运行发布管道时,VSTest 任务失败并显示以下错误消息:
DiscoveryMessage : System.IO.FileNotFoundException: Unable to find tests for D:\a\r1\a\Foo.Tests.dll. Make sure test project has a nuget reference of package "Microsoft.NET.Test.Sdk" and framework version settings are appropriate. Rerun with /diag option to diagnose further.
Foo.Tests.dll 的路径是正确的,所有必需的文件也被复制。
.runsettings(因为该选项Other console options在使用该选项时不起作用Test plan)。path to custom test adaptersVisual Studio 2017和Installed by Tools Installer选项.NET Core Tool installer安装正确的 .NET Core SDK错误信息还是一样。
有什么想法我可能会错过吗?此时,我们将非常感谢您的帮助!
| 归档时间: |
|
| 查看次数: |
1276 次 |
| 最近记录: |