Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using NUnit with TFS 2010? (specifically the reporting)

Tags:

nunit

tfs

Has anyone gotten NUnit successfully integrated with TFS 2010? I can see how to nunit-console and get it run, the question is around the reporting. Has anyone got it to work reliably? I've seen: http://nunit4teambuild.codeplex.com/ but the last activity is an alpha release in May. Has anyone tried this or another solution the six months since? Am I the only person since then to want more than MS-Test has to offer?

BTW there was an earlier version of this question but that was during the TFS 2010 Beta, I'm hoping other people have tried this since then.

like image 916
Mark Levison Avatar asked Nov 17 '10 03:11

Mark Levison


1 Answers

I'm one of the contributors on NUnit4TeamBuild and it works fine in TFS2010, and I use it regularly with the various customers I deal with.

To get it going there are 2 options: Option 1 - use the upgrade build process template with a 2008 style build project to get it working. Option 2 - customise the default workflow template and replace the MStest testing activity with an InvokeProcess activity that calls the nunit command line.

I've got a post on VB6 compilation in TFS2010 (yuck!) that shows how the InvokeProcess activity works. I really should do a post showing how the NUnit stuff works in 2010 as well, but just haven't got to it :-/

I'm also playing with creating a specific workflow activity that wraps the whole thing up in a nice way so it's easier to customise the workflow templates, but I haven't had much time to play with it.

Let me know how you go!

like image 125
Richard Banks Avatar answered Oct 12 '22 01:10

Richard Banks