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

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

问题描述

我有一个VSO(fka TFS)Git项目,它可以正确构建和部署,但无法在解决方案中找到单元测试。

这是消息I见...

 未找到测试。确保已安装的测试发现者&执行者,平台&框架版本设置是适当的,然后再试一次。 

在我的构建定义中,我指定了

   - 在与** \Test * .dll匹配的测试源中运行测试,目标平台:'X86'

我的解决方案结构如下所示:

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


解决方案

另一种选择是在单元测试项目中安装适用于VS2012和VS2013的NUnit测试适配器 NuGet软件包。构建服务器将在那里找到它。无需其他更改。


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

解决方案

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天全站免登陆