Umamaheswaran
Umamaheswaran

Reputation: 3888

How to Integrate NUnit With VS 2008

Hi i created a unit test case using NUnit.When i run the test NUnit it works fine.But i need to run it by using Visual studio.So i referred the NUnit website and followed the below steps 1)Right clicked the test project and clicked properties |Chose Debug option 2)checked the external program option and choosed the nUnit exe file. 3)And i run the test

Error i got: Cannot start because the test project does not contain any test method.But i included 4 test methods which works in NUnit GUI.

Thanks in advance

Upvotes: 4

Views: 3283

Answers (3)

Pedro
Pedro

Reputation: 12328

On the Debug options tab, make sure to also set a command line argument with the name of your test assembly.

Upvotes: 0

mono68
mono68

Reputation: 2090

Also ReSharper beautifully supports testing with NUnit!

http://www.jetbrains.com/resharper/features/unit_testing.html

Upvotes: 2

Enrico Campidoglio
Enrico Campidoglio

Reputation: 60013

Check out TestDriven.NET, a free Visual Studio add-in that allows you to run your unit tests with NUnit directly from the IDE.

Upvotes: 4

Related Questions