JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Unit testing

Last modified: 23 September 2024

JetBrains Rider helps discover and run, debug, cover, or profile unit tests . The following unit testing frameworks are supported:

With JetBrains Rider, 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.

Besides running and debugging unit tests, you can analyze code coverage of unit tests and run performance profiling of unit tests.

Before running coverage analysis or performance profiling, make sure that the PDB information exists for all target assemblies. The safest choice would be to build your code with the Debug build configuration.

In this section:

All JetBrains Rider unit testing actions are available from the Test menu or from the Unit Testing Quick List AltShift0U:

JetBrains Rider: Unit Testing Quick List

You can use the following shortcuts for unit testing commands:

For the full list of JetBrains Rider keyboard shortcuts, refer to Keyboard shortcuts in predefined keymaps.