Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good tools which generate NUnit unit tests for .NET assemblies in Visual Studio 2008 [duplicate]

Possible Duplicate:
Auto-generation of .NET unit tests

I am pretty new to Unit Testing so bear with me.

I realize that best best practice is not to auto generate unit tests, however I'd like to use Code Generation to set-up the basic skeleton of the tests.

Now, I know Visual Studio 2008 already has the built in "create tests", however, it just creates a flat list of all the classes it's going to test... and it's not for NUnit right?

Ideally, I'd like the code generation to follow the folder AND namespace structure of the assembly its generating tests for.

Can you recommend any good tools which generate NUnit unit tests for .NET assemblies in Visual Studio 2008?

like image 519
andy Avatar asked Apr 13 '10 22:04

andy


2 Answers

There is quite a list:

  1. NStub
  2. TestGen.Net
  3. NunitGenAddIn
  4. ($$)KellerMan NUnit Test Generator
  5. Pex
  6. MSTest - fair enough this is not NUnit, but it does generate tests and should be "considered"
like image 64
Lucas B Avatar answered Nov 15 '22 08:11

Lucas B


Try Pex, although it's beta and has a steep learning curve. This article might help.

like image 43
Egor Pavlikhin Avatar answered Nov 15 '22 07:11

Egor Pavlikhin