views:

1924

answers:

5

Having recently gotten into test driven development I am using the Nunit test runner shipped as part of resharper. It has some downsides in terms of there is no shortcut to run tests and I have to go looking for the Nunit test runner to invoke it using the mouse. It has a nice GUI and shows the results as part of the IDE well.

What do other people use for running unit tests against .net projects? I have googled other apps including MBUnit and the Unit test App from Nunit.org and wondered what comes out on top for people.

A: 

Resharper and I think there are shortcuts, but yes it has some shortcomings. Like no testcoverage like TestMatrix has. But then life is not perfect anyway.

TestMatrix seems to b dead BTW.

chrissie1
+8  A: 

I've always been a fan of TestDriven.NET, I much prefer it over using ReSharper.

DamianM
+4  A: 

Resharper does have some shortcomings...but it is possible to configure it to do what you want...

You can configure keyboard options in Visual Studio. Also, you can use the Unit Test Explorer in Resharper to find the tests you want and add them to the current session. I usually configure a shortcut (Alt+U) that runs all the tests in my current session...that way as I'm developing I can run all of the unit tests I need in seconds.

Also check out:

However, it would be nice if this didn't have to be manually configured! (Yes! I'm looking at you Resharper Dev team! LOL)

mezoid
The resharper unit test runner has some downsides:1. poor support for attributes like culture, and a few more2. the session window, will keep showing old unit test you removed an hour ago - and there is no way of making it reset your session automatically
khebbie
+3  A: 

I use the separate NUnit GUI, that is shipped with NUnit. The down side is that you have to alt-tab to it, but I like the visual feedback of having a fat green/red bar across my screen, and having a good overview of all the tests in the treeview.

You can set it to rerun the last test run when it detects that the assembly was changed, so then it really does not slow you down that it is not integrated into Visual Studio.

Erik Öjebo
+2  A: 

Gallio Icarus is a much better looking test runner than the one included with nUnit. It runs nUnit tests, so it's worth a look.

JoshRivers