git - 构建期间未找到 Visual Studio Online CI Nunit 测试

标签 git unit-testing visual-studio-2013 azure-devops

我有一个 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/

相关文章:

eclipse - EGit,为 URI、主机和存储库路径选择正确的参数。

git - 为什么 Git 不问我就记住并使用来自中止的 rebase 的冲突解决方案?

wpf - 什么是 Visual Studio 的字体缓存文件夹?

c# - 如何处理异常以及为什么它们有时会被忽略

git - 如何在 Visual Studio 2013 中显示 'git blame'?

git - Heroku、Procfile 和 gitignore

git - 提交怎么可能在一个分支上两次?

spring - 创建依赖于另一个测试用例的测试

android - 无法解析 : Intent 的 Activity

python - 如何模拟嵌套函数?