ReSharper Web Help

ReSharper | Options | Tools | Unit Testing

In this page of ReSharper options, you can adjust unit testing settings.

Item Description
Global
Enable Unit Testing Enables or disables unit test runner and all unit testing features.
Default platform architecture This selector allows choosing a platform to run unit tests on.
Default .NET Framework version This selector allows setting .NET version to use when running unit tests.
Shadow-copy assemblies being tested If this check box is selected, assemblies being tested are subject to shadow-copying. So even while tests are running, assemblies can be rebuilt.
Use separate AppDomain for each assembly with tests This option applies to MSTest and NUnit tests and lets test runner start each test assembly in its own Application Domain. It may come in handy in the following situations:
  • You need to use dirrerent app.config files for different test assemblies.
  • You use reflection in tests.
Run up to [number of assemblies] assemblies in parallel Select the number of assemblies to be tested by ReSharper concurrently in parallel threads.
Run tests from:

Click Project output folder to run compiled tests from the default location. When assemblies are placed in the default project location, test files are retrieved from the same location.

Click Specified folder to run tests using a post-build step, so the tests are run from the particular folder. Enter the desired path in the text box, or click Browse to open the Browse For Folder dialog box and specify the desired location.

Skip tests from categories Type names of test categories to be excluded from the run. The tests associated with the category that you specified are ignored.
Unit Test Sessions
Save and restore Unit Test Sessions Select this check box to allow ReSharper to restore unit test sessions opened in the Unit Test Sessions window when you close and reopen Visual Studio.
Wrap long lines in Unit Test Session output Defines how to display long lines in the Output tab in the Unit Test Sessions window. If this check box is selected, long lines are wrapped.

Note

ReSharper's settings are saved in settings layers that enable you to have different settings for different solutions as well as to share your settings with your team. To learn more, study the Managing and Sharing Options section.