Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
704 views
in Technique[技术] by (71.8m points)

build automation - TeamCity Setting up MSTest 2012

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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 enter image description here

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:

**in***.Tests.dll

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

Regards


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...