使用 azure devops 管道进行 nunit 测试

nunit testing with azure devops pipelines

我正在尝试遵循此文档:https://docs.microsoft.com/en-us/azure/devops/test/run-automated-tests-from-test-hub?view=azure-devops 为了 运行 自动化测试,我正在使用 .net core 3.1 和 tfs with nunit 和 vs 2019

测试已完成,没有错误,但它没有 运行 我的测试用例

和配置:

根据错误信息“##[warning]Project file(s) matching the specified pattern were not found.Test步骤中的模式设置不正确。

如果测试项目名称是NUnitTestProject,那么请使用下面的模式:

  • 使用全名:**/NUnitTestProject.csproj

  • 使用通配符:**/*Test*.csproj

  • 交替使用 **/*.csproj(对于所有子文件夹中的所有 .csproj 文件),它将搜索所有项目 绝对包括测试项目。