Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating Visual Studio Test Project with Cruise Control

Tags:

I'm looking into using Visual Studio 2008's built in unit test projects instead of NUnit and I was wondering if anyone has any experience in trying to integrate this type of unit test project with Cruise Control.Net.

like image 918
denny Avatar asked Aug 04 '08 19:08

denny


People also ask

Does Visual Studio run tests in parallel?

Visual Studio 2019 runs unit tests sequentially when it is suppose to run them in parallel. Click on the Run Tests in Parallel button in Test Explorer. Make sure the icon is highlighted.

Can we use Visual Studio for testing?

Run tests in Test ExplorerIf Test Explorer is not visible, choose Test on the Visual Studio menu, choose Windows, and then choose Test Explorer (or press Ctrl + E, T). As you run, write, and rerun your tests, the Test Explorer displays the results in a default grouping of Project, Namespace, and Class.

How do I test a project in Visual Studio?

Select the test project in Solution Explorer. On the Project menu, select Add Reference. In Reference Manager, select the Solution node under Projects. Select the code project you want to test, and then select OK.


1 Answers

From some of the initial research it doesn't appear to be a super simple solution.

It appears that doing this involves having Visual Studio 2008 actually installed on the continuous integration server, which could be a deal breaker.

Then configure the MSTest.exe to run in the tasks list, but first you'll have to make a batch file to delete the results files from previous passes as this file's existence causes an error.

Then create a xslt to format the results and put it into the dashboard.config file.

The code project article I found has a lot more detail.

Integrating Visual Studio Team System 2008 Unit Tests with CruiseControl.NET

like image 74
denny Avatar answered Oct 06 '22 00:10

denny