I have set up two permanent test sessions in ReSharper 7 in Visual Studio 2010/2012 – “Passing” and “Failing”. I run the Passing session daily and can quickly identify any regression failure since the last time in which case I move those tests into Failing, where I can work on it when I get time. It works and it’s great.
The problem is that I can’t find any way to export those sessions as a “Solution Team-Shared” option, as suggested in the ReSharper docs for settings you might want to share across a team. Obviously, it’d be beneficial to be able to have others in the time avail of the same test session structure. But when I change my sessions, it only ever seems to update the ‘PatientPortal.sln.DotSettings.user’ file, not the ‘PatientPortal.sln.DotSettings’ one.
In RESHARPER -> Options -> Unit Testing, I have checked ‘Save and restore Unit Test Sessions’ and have selected Save-To – ‘Solution [name] Team-shared’
Because of the difficulty I’m experiencing, I suspect that ReSharper unit test sessions are not designed to be something you check-in and share, but I’d find it productive to do so in this case, so does anyone know how to do this?
You should use categories for this. If you are using NUnit, then you can use CategoryAttribute to mark your tests or test fixtures with categories, like this:
You can specify several categories for one test (just use attribute several time). Afterwards go to
ReSharper | Unit Tests | Unit Testsand selectGroup by -> Categories(or something like that, don’t remember exactly). Select your category and press a buttonRun selected testsfrom toolbar.