Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I stop Resharper from running my Specifications project when I Run All Tests from Solution?

I have a bunch of unit test projects for various other projects, and I have one Specifications project for the web application which runs Selenium 2 code via NUnit. This takes a much longer time to run than the rest of the tests.

I only want these specification tests to run when I run my build script, and when I explicitly run the project's tests, and not when I Run All Tests from Solution with Resharper.

Is there any way to set up Resharper or NUnit to ignore a test project when I Run All Tests from Solution?

Thanks!

like image 655
adamjford Avatar asked Nov 15 '22 03:11

adamjford


1 Answers

I guess that's not possible. You could filter and group your tests in the unit test session windows by project and then manually just run the groups you want. But this isn't a one click solution.

The only solution I can think about would be, to use two different unit test providers (e.g. MSTest and NUnit) and then disable the provider you're using in your specifications project in the ReSharper options.

Hope that helps.

like image 142
Martin Buberl Avatar answered Dec 25 '22 14:12

Martin Buberl