I am trying to setup a Visual Studio solution that facilitates:
BDD
Using SpecFlow http://www.specflow.org/
As described on TekPub here: http://tekpub.com/view/concepts/5
I would like:
To keep all references and dependencies under the root of my solution's directory structure
The ability to use the,"Test With NUnit",command when I right-click on my project that TestDriven.NET provides.
I do NOT want:
I do want:
More detail and what I have already tried:
When you install TestDriven.NET it places its own version of NUnit in a path like:
When you use NuGet to install the latest version of NUnit it places NUnit in a path like:
NuGet automatically adds a reference to \packages\NUnit.2.5.10.11092\lib\nunit.framework.dll for you. That reference is pretty much worthless if you happen to want to easily execute NUnit tests with the TD.Net menu because TD.Net doesn’t actually use the NUnit dll that NuGet just setup for you.
OR
Why am I trying to do this?
I installed NUnit with NuGet so that I could keep the testing framework libs inside of my solution and under source control. I need the ability to reference things like nunit.framework.dll under my solution's path (Solution_root\packages\NUnit.2.5.10.11092) and NOT reference it from (\Program Files (x86)\TestDriven.NET 3\NUnit\2.5).
I already tried the suggestions here:
http://www.paraesthesia.com/archive/2010/05/03/how-to-run-a-different-nunit-version-with-testdriven.net.aspx
and it still seems to be launching TestDriven.Net's version of NUnit instead of the one NuGet installs for me.
I also do not want to manually copy over and replace the NUnit files installed by TD.Net as that doesn’t allow for solution-specific dependency files and isolation under source control.
Not sure this is exactly what you're after, but here goes:
Under Visual Studio (i am using 2010):
Add a new key NUnit 2.5.X (simply copy another key and change whatever settings you need).
Restart Visual Studio.
From now on, your tests will run with the test runner you configured.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With