Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run all NUnit Tests in Team City?

Tags:

We are using TeamCity 6.0 to build VS C# solutions each commit.
Once the build is complete, a different test TC project runs. So that developers can add/remove/edit VS unit test projects, how can I make TeamCity use the the sln file or search for test dll's?
I don't want to have to edit the build each time a new test project is added to the VS solution.

Run tests from: **\*Test*.dll Doesn't appear to work, it only get s the first Test (which is currently failing)

Build Step

like image 925
Michael Blake Avatar asked Apr 13 '11 08:04

Michael Blake


People also ask

How do I run NUnit test cases?

Create Test Runner Class It imports the JUnitCore class and uses the runClasses() method that takes the test class name as its parameter. Compile the Test case and Test Runner classes using javac. Now run the Test Runner, which will run the test case defined in the provided Test Case class. Verify the output.


1 Answers

Fixed :) - RTFL (Read the log!)
Run tests from: **\bin\debug\*Test*.dll

like image 194
Michael Blake Avatar answered Sep 21 '22 17:09

Michael Blake