构建期间未找到 Visual Studio Online CI Nunit 测试 [英] Visual Studio Online CI Nunit Tests not found during build

查看:21
本文介绍了构建期间未找到 Visual Studio Online CI Nunit 测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 VSO(f.k.a TFS)Git 项目,它可以正确构建和部署,但在解决方案中找不到单元测试.

I have a VSO (f.k.a TFS) Git project that builds and deploys properly but can't find the unit tests in the solution.

这是我看到的消息...

This is the message I see...

No test found. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.

在我的构建定义中我指定

In my build definition I specify

 - Run tests in test sources matching **Test*.dll, Target platform: 'X86'

我的解决方案结构是这样的

My solution structure is like this

/Tests.Unit.ProjectName/Tests.Unit.ProjectName.csproj
/ProjectName/ProjectName.csproj

推荐答案

另一种选择是安装 NUnit Test Adapter for VS2012 和VS2013 单元测试项目中的 NuGet 包.构建服务器会在那里找到它.无需其他更改.

Another option is to install the NUnit Test Adapter for VS2012 and VS2013 NuGet package in the unit test project. The build server will find it there. No other changes needed.

这篇关于构建期间未找到 Visual Studio Online CI Nunit 测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆