Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best practices for setting up a Visual Studio project for nUnit tests

How do people set up their projects for Visual Studio and how do you reference the testable application ?

Right now I've added a separate project creating a .dll to my solution which contains all the test cases and references nunit.framework , and it also references the main .exe file right from the Debug/ folder where VS generates the output.

But I've no idea if that's a good idea - or what the best practices are, anyone want to share their practices ?

like image 798
nos Avatar asked Jul 13 '09 13:07

nos


1 Answers

That sounds pretty good to me - you can distribute or deploy your application without the test assembly and NUnit, but still test everything. Pretty much standard practice.

like image 78
David M Avatar answered Sep 30 '22 19:09

David M