Unit testing assistance
ReSharper helps discover and run or debug unit tests right in Visual Studio. The following unit testing frameworks are supported:
NUnit — ReSharper installation includes 2 bundled test runners that support versions up to 2.7.1 and up to 3.15.5 correspondingly. Other versions up to 4.1.0 are supported and will be used if the corresponding NuGet package is installed in the project.
Custom test frameworks that use VSTest and Microsoft.Testing.Platform.
To enable support of these frameworks, select the corresponding checkboxes on the Alt+R, O.
page of ReSharper optionsMachine.Specifications (requires an extension). For more information about using extensions, see Manage extensions.
Jasmine 1.3. - 2.3.
With ReSharper, you can execute a single unit test, all tests in a test class, file, project or solution. You can also execute any number of tests combined in a test session.
Unit testing assistance can be extended with other JetBrains .NET products: you can profile unit tests with dotTrace and analyze code coverage of unit tests with dotCover. These products are included in the dotUltimate license.
In this section:
- In current document
- In project or solution
- Unit test sessions
- Test categories
- Execute tests
- Analyze test results
- Create unit tests
- Navigate between tests and tested code
- Maintain code quality of unit tests
- Analyze code coverage with dotCover
- Profile unit tests with dotTrace
- Monitor memory with dotMemory Unit
- Unit Test Explorer window
- Unit Test Sessions window
This feature is supported in the following languages and technologies:
The instructions and examples given here address the use of the feature in C#. For more information about other languages, refer to corresponding topics in the Languages and frameworks section.