Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 828
Ian Vink Avatar asked May 06 '13 22:05

Ian Vink


People also ask

What is the difference between MSTest and VSTest?

There is a difference between vstest and mstest - the former is a test runner and the later is a test framework.

How do I run MSTest?

To run MSTest unit tests, specify the full path to the MSTest executable (mstest.exe) in the Unit Testing Options dialog. To call this dialog directly from the editor, right-click somewhere in the editor and then click Options.

How do I run TestNG on TeamCity?

Configuring project in TeamCityCreate a new build configuration inside this project. Attach it to the project's VCS root. Add the Maven build step. The Maven build runner supports the TestNG framework and provides real-time reports.


1 Answers

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:

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

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

Regards

like image 183
Dejan Dakić Avatar answered Nov 02 '22 03:11

Dejan Dakić