TeamCity设置MSTest 2012 [英] TeamCity Setting up MSTest 2012

查看:77
本文介绍了TeamCity设置MSTest 2012的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在TeamCity服务器上,我们已经安装了VS 2012.

On the TeamCity server we have installed VS 2012.

我已经在TeamCity中创建了一个构建配置,用于构建和部署解决方案.

I have created a build configuration in TeamCity that builds and deploys the solution.

我还添加了MSTest 2012配置,但不知道如何告诉它VS 2012测试项目是什么项目,以便它可以运行那些测试.

I have added a MSTest 2012 Configuration as well, but don't know how to tell it what project is the VS 2012 test project so that it can run those tests.

谢谢

推荐答案

您需要指定测试的程序集文件(dll),而不是项目文件(csproj).

You need to specify assembly file (dll) of your tests, not the project file (csproj).

这里是一个示例: http://shrani.si/f/p/PH/2tO4Zo5s/tmpa4cc.jpg

因此,假设您的测试程序集名为Company.Tests.dll,它位于Company.Tests/bin/Debug/Company.Tests.dll

So let's say your Testing assembly is called Company.Tests.dll and it is located in Company.Tests/bin/Debug/Company.Tests.dll

基本上,在列出程序集文件:"中,必须放置路径(可以使用通配符)

Basically, in "List assembly files:" you must put the path (You can use wildcards)

例如:

**\bin\**\*.Tests.dll

这将找到所有带有.Tests.dll后缀的程序集.

This will locate all assemblies with .Tests.dll suffix.

致谢

这篇关于TeamCity设置MSTest 2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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