我有一个 VSO (f.k.a TFS) Git 项目,可以正确构建和部署,但在解决方案中找不到单元测试。
这是我看到的消息...
No test found. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.
在我的构建定义中我指定了
- Run tests in test sources matching **\Test*.dll, Target platform: 'X86'
我的解决方案结构是这样的
/Tests.Unit.ProjectName/Tests.Unit.ProjectName.csproj
/ProjectName/ProjectName.csproj
最佳答案
另一种选择是安装 NUnit Test Adapter for VS2012 and VS2013单元测试项目中的 NuGet 包。构建服务器会在那里找到它。无需其他更改。
关于git - 构建期间未找到 Visual Studio Online CI Nunit 测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20027235/