Unit Tests window
This window lets you manage all your unit testing activities in different tabs.
To search tests, start typing a test name or its CamelHumps abbreviation as soon as your focus is in this window.
Using this tab, you can explore and run/debug unit tests of all supported frameworks in the entire solution. Note that unit tests from a project only appear in the tab after the project is built. Tests from currently opened files are updated automatically, new tests from the opened files appear in the unit test explorer as soon as you create them.
When the Explorer tab, or any unit test session tab is open, you can use the following controls on the left-hand toolbar:
|Run Unit Tests Ctrl+U, R||Runs selected tests. To select multiple texts, use the Ctrl key.|
|Debug Unit Tests Ctrl+U, D||Debugs selected tests in the current session.|
|Append Tests to Session Ctrl+U, A||Click this button to add the selected tests to a test session. Rider will suggest choosing one of the existing sessions or creating a new one.|
|Grouping||Allows grouping items in the window by different categories.|
|Create New Session Ctrl+U, N||Creates a new test session with selected tests, which is then opened in a new unit test session tab.|
| Expand All/ Collapse All |
Ctrl+NumPad Plus/ Ctrl+NumPad Minus
|Expands/collapses all nodes in the current tab.|
| Previous/ Next |
Ctrl+Alt+Up / Ctrl+Alt+Down
|Navigate to the previous/next item and scrolls through the source code accordingly.|
|Unit Test Settings||Opens the page of Rider settings (Ctrl+Alt+S), where you can configure all settings related to unit testing.|
Unit test sessions tabs
These tabs are designed to help you run any number of unit test sessions, simultaneously and independently of each other. Sessions can be composed of any combination of tests. In the debugging mode, only one session can be run at a time.
The unit test tree shows the structure of tests belonging to a session, which you can filter to show only passed, failed or ignored unit tests. You can navigate to the code of any unit test by double-clicking it.
When a unit test session tab is open, you can additionally use the following controls on the upper toolbar:
Title bar context menu and buttons
You can also use the toolbar buttons:
|Click this button to access a subset of the context menu commands that let you configure window's viewing mode.|
|Shift+Escape||Use this command to hide the tool window. You can also use it in combination with the Alt key to hides all tool windows attached to the same tool window bar.|