xUnit 无法在 Azure DevOps CI pipline 上运行。

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

我正在尝试使用 Azure CI 管道运行 xUnit 测试,尽管单元测试在 Visual Studio 2017 中成功运行,但在 Azure DevOps 上没有结果。以下是 Azure 管道中 vs 解决方案以及构建和测试任务的截图: '

测试项目

enter image description here

视觉工作室的解决方案

Solution

酝酿中的解决方案

Solution in the CI pipline

建立任务

Build task

测试任务

test task

测试任务结果

enter image description here

我的设置有什么问题?

azure-devops msbuild visual-studio-2017 xunit vstest
1个回答
0
投票

请更改你的测试文件,并替换这一行。

**\bin\$(BuildConfiguration)\**\*test*.dll

改为:

**\bin\$(BuildConfiguration)\**\UnitTesting.dll

或这个。

**\bin\$(BuildConfiguration)\UnitTesting.dll

请尝试将此模式应用于你bin文件夹中的文件夹结构。

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