user147373
user147373

Reputation:

using nunit with visual web developer 2008 express

I'm experimenting with potentially using Visual Web Developer 2008 Express for a project, but since the Express edition doesn't support the publish feature and since the ide also does not create any *proj files, how can I use the nunit gui to run my tests?

Upvotes: 1

Views: 637

Answers (2)

ajawad987
ajawad987

Reputation: 4637

Your unit tests should reside in a separate project from the main project, and be a class library as well. From there, you can simply build your test project, and then open up the generated DLL in the NUnit GUI to run the tests.

I also second Andrew's suggestion on moving the business logic to a separate DLL away from the web project you create, as it makes it easier to unit test and re-use.

Upvotes: 1

Andrew Shepherd
Andrew Shepherd

Reputation: 45252

The approach I would take is move as much business logic as you can into a Class Library, and have your website use this Class Library and your unit tests test that Class Library.

Upvotes: 4

Related Questions