Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper - Run NUnit Unit Tests on Build

Is it possible to enable Resharper to automatically run all unit tests within a solution automatically when performing a local build using Visual Studio? I believe NUnit has an option "re-run last tests run" but I don't see such an option through Resharper or VS.

Thanks in advance

JP

[Edit] This may or may not matter, but I should point out that I am a one-man-team writing a medium sized application.

like image 308
JP. Avatar asked Aug 11 '11 18:08

JP.


People also ask

How do I open Unit Test Explorer ReSharper?

In the Unit Test Explorer window, select tests/test classes for the new session and choose Create New Session. from the context menu or press Ctrl+U N . In the main menu, choose ReSharper | Unit Tests | Create New Session or press Ctrl+U N .


2 Answers

Posting this one for anyone that comes across it in the future:

If you're running Visual Studio 2012, someone wrote a plugin that will do exactly what you are looking for: http://visualstudiogallery.msdn.microsoft.com/5dca9c5c-29cf-4fd7-b3ff-573e5776f0bd

like image 56
Jay Harris Avatar answered Oct 13 '22 22:10

Jay Harris


I don't think ReSharper has that option, but you could always turn to something like NCrunch or Continuous Testing one of the other continuous testing frameworks for .NET. Just be aware that they are still fairly new and a little rough around the edges.

like image 23
Richard Banks Avatar answered Oct 14 '22 00:10

Richard Banks