Run Toolbar
Testing Toolbar
| Item | Tooltip and Shortcut | Description |
|---|---|---|
|
| Hide Passed | Press this button, to have PyCharm show only the failed tests or the tests that encountered problems in the left-hand pane. If this button is not pressed, all tests are displayed in the tree view. |
![]() | Sort alphabetically | Click this button to sort tests in alphabetical order. |
| Expand All/Collapse All Ctrl+NumPad + or Ctrl+EqualsCtrl+NumPad + or Ctrl+EqualsCtrl+NumPad + or Ctrl+EqualsCtrl+NumPad + or Ctrl+EqualsCtrl+NumPad + or Ctrl+EqualsCtrl+NumPad + or Ctrl+EqualsCtrl+NumPad + or Ctrl+EqualsCtrl+NumPad + or Ctrl+EqualsMeta NumPad or Meta EqualsMeta NumPad or Meta EqualsMeta NumPad or Meta EqualsCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusMeta NumPad - or Meta MinusMeta NumPad - or Meta MinusMeta NumPad - or Meta Minus | Click these buttons to have all nodes in the tree view of tests expanded.
Note These buttons are only available if the tested application contains more than test case. |
![]()
| Previous/Next Failed Test Ctrl+Alt+Up/Ctrl+Alt+Down | Click this button to navigate between the failed tests. |
| Export Test Results | Click this button to have the results of the selected test saved in a file. IN the Export Test Results that opens, specify the file to save the output in and the format in which the data will be saved. |
|
| Click this cog button to access the context menu with the following options:
| |
Test Status Icons
| Icon | Description |
|---|---|
| Test error. This status is assigned to tests that caused an exception from the tested source code. |
| Test failed. If at least one test receives this status, the entire tree is marked as terminated as well. |
| Test ignored. |
| Test in progress. |
| Test passed successfully. |
| Test paused. |
|
Test terminated. This status is assigned to tests that were cancelled by clicking the Stop button .
If at least one test receives this status, the entire tree is marked as terminated as well.
|
|
Test not run. This status is assigned to a test when PyCharm has not launched it at all, for example,
because testing was terminated by clicking the Stop button .
|
Output pane
This pane shows output of each test, generated at runtime, including all the messages sent to the output stream, and the error messages. The following table shows the toolbar buttons and context menu commands available for the Output pane.
| Item | Keyboard Shortcut | Description |
|---|---|---|
| Up the Stack Trace Ctrl+Alt+Up | Click this button to navigate up in the stack trace and have the cursor jump to the corresponding location in the source code. |
| Down the Stack Trace Ctrl+Alt+Down | Click this button to navigate down in the stack trace and have the cursor jump to the corresponding location in the source code. |
|
| Use Soft Wraps | Click this button to toggle the soft wrap mode of the output. |
| Scroll to the end | Click this button to navigate to the bottom of the stack trace and have the cursor jump to the corresponding location in the source code. |
| Click this button to configure printing out the console output in the Print dialog box that opens. | |
| Clear All | Choose this item on the context menu to have all messages for the selected test deleted. | |
| Copy Content | Ctrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+Insert, Alt+C or Escape, WCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertMeta C or Meta InsertMeta C or Meta InsertMeta C or Meta Insert | Choose this item on the context menu to have the current contents of the Output pane placed to the Clipboard. |
| Compare with Clipboard | Choose this item on the context menu to invoke the Differences Viewer which shows the current contents of the Clipboard in the left-hand pane and the contents of the Output pane for the selected test in the right-hand pane. pane. |
Statistics Pane
This pane shows how long it took to execute a test suite and the number of passed and failed tests within it. You can have information in columns shown in the ascending or descending order by clicking the column headers.
To view statistics on each test separately, double click the test suite which contains the desired test. The pane shows a list of all the tests in the selected suit.
The Context menu commands are the same as for the tree view of tests.
| Column name | Description |
|---|---|
| Test | Name of the test class or test method. |
| Time elapsed | The number of seconds spent to to execute this test. |
| Results | This column shows summary information about the test execution results. For individual tests, the column shows the pass or fail status. For test case or test suites, the column shows the number of failed and passed tests within it. |
Context menu commands
| Command | Keyboard shortcut | Description |
|---|---|---|
| View assertEquals Difference | Alt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+Enter, Alt+Shift+J or Ctrl+Shift+MAlt EnterAlt EnterMeta 1 | Choose this command to show the Differences viewer for the strings being compared. This command is only available when assertion has failed. |
| Run <test name> with Coverage | Ctrl+Shift+F10Ctrl+Shift+F10Ctrl+Shift+F10Ctrl+Shift+F10Ctrl+Shift+F10Ctrl+F9Alt+Shift+F6 or Shift+F6Ctrl+Shift+F10Control Shift F10Control Shift F10Control Shift R | Run the selected test and collect coverage data in accordance with the current temporary run/debug configuration. |
| Jump to Source | F4F4F4F4F4F4F4F12 or Ctrl+Shift+EF4F4F3 | Choose this command to move the focus to the editor, to the definition of a test class, or test method. |






