Search code examples
.netvisual-studio-2008unit-testingnunitcode-generation

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


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?


Solution

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