views:

84

answers:

3

I am familiar with jUnit.
What unit testing framework is very popular for VS?

+2  A: 

NUnit, the .net cousin of jUnit.

Otávio Décio
do u like nUnit over the built in testing framework in VS2008?
bmw0128
@bmw0128 - any day. xUnit may be better but the builtin one is a pita imho.
Otávio Décio
+5  A: 

There are at least these

  • xUnit.net - probably the newest and most modern of these four, it leverages a lot of experience from using previous frameworks to makes things simpler and more open.
  • NUnit - originally a port from JUnit
  • MBUnit
  • MSTest - Built-in in Visual Studio Professional (IIRC) and up
Mark Seemann
+1 for NUnit here
Bill
I would shy away from the built-in unit test framework that comes with VS 2008 (MSTest). We've been using it on our project over the last 2 years and it's been painful (there is a background test discovery feature that causes the UI to lockup for periods of time occasionally and it adds significant time to every single recompile).+1 to xUnit for me.
Jeremy Wiebe
+1  A: 

If you develop c++ apps with visual studio I can recommend cppunit for unit testing which is a direct port of junit.

Holger Kretzschmar