After installing NUnit from NuGet, how do I force TestDriven.Net to use the NUnit dll referenced by NuGet?

Я пытаюсь настроить решение Visual Studio, которое упрощает:

Я бы хотел :

  • Чтобы сохранить все ссылки и зависимости под корнем моего решения структура каталогов

  • Возможность использовать «Тест с NUnit ", команда при щелчке правой кнопкой мыши в моем проекте TestDriven.NET предоставляет.

Я НЕ хочу:

  • Чтобы использовать версию NUnit, которая TestDriven.NET устанавливает для себя

Я действительно хочу:

  • Команда "Test With NUnit" для использования версии NUnit, который NuGet устанавливает под моим solution's sub directories for me

More detail and what I have already tried:

When you install TestDriven.NET it places its own version of NUnit in a path like:

  • \Program Files (x86)\TestDriven.NET 3\NUnit\2.5

When you use NuGet to install the latest version of NUnit it places NUnit in a path like:

  • Solution_root\packages\NUnit.2.5.10.11092

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.

  • How do I force TestDriven.Net's menu to use the referenced NUnit dll in my solution's path instead of the NUnit dll that it installs under \Program Files (x86)\TestDriven.NET 3\NUnit\?

OR

  • If that is not possible, is there an easy shortcut key/menu command to execute the SpecFlow tests with the NUnit that IS under my solution folder without using TestDriven.Net?

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:

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.

9
задан Kerry 22 May 2011 в 05:53
поделиться