These days I’m heavily working on NUnit to build some extensions to the testing framework we need on our projects. We need a simple way to launch our tests inside visual studio while developing. Our first solution was to use TestDriven.NET or the Reshaper implementation of NUnit.
However both these approaches have some limitation I actually don’t like, especially when it comes to the use of NUnit addins. Resharper do not have full support installing and using NUnit addins, and TestDriven.net will force you to use it’s embedded version of NUnit to let the addin launch the environment and the tests.
In its actual implementation it has however some limitations: you have to set the project you want to run as the startup project and you cannot run single tests (like TestDriven.net for example).
So I took the code and added some of the missing functionalities, now you can:
- Run the currently selected project in the solution explorer in the NUnit GUI.
- Run the currently selected project in the solution explorer in the NUnit console.
- Run a single test (open a file and place the caret on the test you want to run) using the NUnit console.
I posted my code to the original author of the addin, I hope they will be integrated in the official version too.
Here are the code and the installation files: