Mar
21
2008

Set Up a Build Computer using VisualSVN, Team City, MsTest, NUnit

When I started to work on the new version of Tech Head Brothers I decided to use the new version of the unit testing framework from Microsoft. Before making this decision I read that it was much better and faster in several places. As I also wanted to get code coverage I thought it was a good idea.

I also had to setup a version control system and decided to use subversion with the facility of the free VisualSVN Server. Very simple way to setup in less than 10 min (including download time) a subversion repository on a Windows server. I highly recommend it ! I am also now, for some months, using VisualSVN that provides a seamless integration between subversion and Visual Studio 2005 and 2008. VisualSVN Limited offered a license of VisualSVN to me and my brother. Thanks a lot, really appreciated! And now at innoveo solutions, my company, we are also using it.

Then came the time to have a continuous integration server. After having CC.NET installed and used at innoveo solutions I decided to give a try to JetBrains Team City for my personal use  on Tech Head Brothers development. The installation and configuration with subversion was straight and achieved in less than two hours. So I had a version control system and continuous integration process setup in less than 2 hours and a half. Isn't that incredible?

But as you can see on the following picture I had and still had an issue!

 

My unit tests aren't running at all! And you know what? What I feared the most was actually true!

As you can read it on this msdn article: How to: Set Up a Build Computer 

Important Note:

In order to run tests during the build, Test Edition must be installed on the build computer. In order to run unit testing, code coverage, or code analysis, Visual Studio Team System Development Edition must be installed on the build computer.

Or on this forum post "Strange MSTest.exe problems with Build Server 2008 RTM"

We are indeed hoping to address this issue in a future release, but for now running unit tests with Team Build does require VS Team Suite or VS Team Tester on the build machine.

So no what I need to do as a next step is to convert my Visual Studio unit tests to a framework, like NUnit, that doesn't needs a development environment installed on a build server. What a waste of time!

At innoveo we are successfully using NUnit and Rhino Mocks with Team City!

Comments (4) -

http://

how did you get that free license?
I'm trying to get one (I allready mailed, but without any response) for my schoolproject, but so far no succes...

http://

Thank you very much. Your article helped a lot.

http://

Man, this thing rocks with Nunit!  I'm not sure there's a compelling need to stick with MSTest - can anyone think of a reason?

bonder: Team City with NUnit just rocks! One assembly and you have it. You don't need to have the whole Visual Studio installed on the server.

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About Laurent

Laurent Kempé

Laurent Kempé is the editor, founder, and primary contributor of Tech Head Brothers, a French portal about Microsoft .NET technologies.

He is currently employed by Innoveo Solutions since 10/2007 as a Senior Solution Architect and certified Scrum Master.

Founder, owner and Managing Partner of Jobping, which provides a unique and efficient platform for connecting Microsoft skilled job seekers with employers using Microsoft technologies.

Laurent is awarded by Microsoft since Avril 2002: Most Valuable Professional (MVP).

MVP
Certified ScrumMaster
JetBrains Academy Member

My status

Twitter

Flickr

www.flickr.com
This is a Flickr badge showing public photos and videos from Laurent Kempé. Make your own badge here.

Month List

Page List