dotCover 2018.2 Help

Unit Test Sessions window

ReSharper | Windows | Unit Test Sessions
ReSharper | Unit Tests | Unit Test Sessions
Ctrl+Alt+R

dotCover runs unit tests in the Unit Test Sessions window. The window appears automatically when you run tests from the current document or from the project or solution. For more information, see Using Unit Test Sessions.

dotCover unit test sessions

The window is 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.

Status Bar and Progress Bar

The progress bar and the status bar under the toolbar display the current progress. On the status bar, you can see the total number of tests in the session as well as number of tests in different states:

Unit test filters
By default, tests in all states are shown, but you can click the corresponding icons to filter tests by their state. You can also Ctrl-click several icons to display tests in several different states.

Control

Name

Description

ThemedIcon StatusAll Screen Gray

All Tests

Show all tests in the current test session.

ThemedIcon Success Screen Gray

Passed Tests

Only show successful tests and hide all other tests.

ThemedIcon StatusFailedPassive Screen Gray

Failed Tests

Only show failed tests and hide all other tests.

ThemedIcon Ignore Screen Gray

Ignored Tests

Only show ignored tests and hide all other tests. A test is ignored if it has the corresponding attribute, or if the whole category where it belongs is ignored.

ThemedIcon StatusUnknown Screen Gray

Unknown Tests

Only show tests that either were not executed or have changed since the last execution.

ThemedIcon SessionLog Screen Gray

Execution log

Lets you see either the number of test execution errors (related to the execution process, not tests themselves) or shows OK if there are no errors.
You can click this icon to show or hide the execution log..

Window tabs

When unit test sessions open in the window, they are displayed in new tabs, which show up on the left. The previously open tabs move to the right if the width of the window allows, otherwise they unload themselves saving memory - but you can always restore them by clicking the arrow that appears to the right of the tabs and clicking the required tab:

Tool window tabs

To prevent a tab from unloading, click the pin icon ThemedIcon Pin Screen Gray next to the tab title.

Toolbar Controls

Control

Name

Description

ThemedIcon Rerun Screen Gray

Repeat Previous Run Ctrl+T T

Repeats the previous test run.

ThemedIcon RunAll Screen Gray

Run Current Session Ctrl+T Y

Runs all tests in the current session.

ThemedIcon UtrProfileAll Screen Gray

Profile All Tests

By clicking this button, you can profile all tests. This button appears if JetBrains dotTrace is integrated with Visual Studio.

ThemedIcon JetBrainsDotCoverPresentationVsResourcesUnitTestingCoverageCoverAll Screen Gray

Cover All Tests Ctrl+T I

By clicking this button, you can run coverage analysis for all unit tests in the test session.

ThemedIcon RunTest Screen Gray

Run Unit Tests Ctrl+T R

Runs selected tests. To select multiple texts, use the Ctrl key.

ThemedIcon Debug Screen Gray

Debug Unit Tests Ctrl+T D

Debugs selected tests in the current session.

ThemedIcon UtrProfile Screen Gray

Profile Unit Tests

This button appears if JetBrains dotTrace is integrated with Visual Studio. By clicking this button, you can profile selected tests.

ThemedIcon JetBrainsDotCoverPresentationVsResourcesUnitTestingCoverageCover Screen Gray

Cover Unit Tests Ctrl+T H

By clicking this button, you can perform code coverage on the selected tests.

ThemedIcon StopTest Screen Gray

Stop Execution

Stops the current test session.

ThemedIcon TrackRun Screen Gray

Track Running Test

If this button is on, the selection in the list of tests is switched automatically to the test that is currently executing.

ThemedIcon ScrollToBottom Screen Gray

Auto Scroll Output When Running Test

This button enables the output pane to scroll when the test is running so that the end of the output is always visible.

ThemedIcon Remove Screen Gray

Remove Selected Tests Delete

Removes selected tests from the current session.

ThemedIcon ExpandAll Screen Gray ThemedIcon CollapseAll Screen Gray

Expand All/ Collapse All

Expands/collapses all nodes in the current tab.

ThemedIcon Up Screen Gray ThemedIcon Down Screen Gray

Previous/ Next
Shift+F8 / F8

Navigate to the previous/next item and scrolls through the source code accordingly.

ThemedIcon PreviewToggle Screen Gray

Show Output Ctrl+P

This selector allows you to open the Output and the Coverage panes and place them to the bottom or to the right of the window.

The Output pane lets you analyze test results and navigate from a failed test's output to the code lines that originated the assertion or exception, all with a single click.

The Coverage pane displays the code coverage tree or the hot spots view and provides the same controls and functions as Coverage Results Browser window, plus the Show coverage for selected tests ThemedIcon JetBrainsDotCoverPresentationResourcesCoverageTreeToolBarSelectedTest Screen Gray button that allows viewing coverage of unit tests.

ThemedIcon Export Screen Gray

Export

Click this button to export the data currently displayed in the window in text format, or use the drop-down selector to export the data in XML or HTML format. The Export Data dialog that appears, will help you to save the data to a file or copy it to the clipboard.

ThemedIcon StackTraceExplorerToolWindow Screen Gray

Show Stack Trace in a new Window Ctrl+Shift+Alt+E

Opens the output of the currently selected test in a new tab of the Stack Trace Explorer window.

ThemedIcon Update Screen Gray

Reference dotMemory Unit Framework

Installs the dotMemory Unit Testing Framework NuGet package and references it in the unit test project where the selected test belongs.

This button appears if JetBrains dotMemory is integrated with Visual Studio.

Last modified: 21 December 2018

See Also