TeamCity Setting up MSTest 2012

感情迁移 提交于 2019-12-18 05:41:23

问题


On the TeamCity server we have installed VS 2012.

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

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.

Thanks


回答1:


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

Here's an example: http://shrani.si/f/p/PH/2tO4Zo5s/tmpa4cc.jpg

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)

For example:

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

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

Regards



来源:https://stackoverflow.com/questions/16408166/teamcity-setting-up-mstest-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!