WebStorm 2021.1 Help

Coverage Tool Window

View | Tool Windows | Coverage

When you run Jest, Karma, and Mocha tests with coverage, the tool window displays coverage measurement results.

Coverage tool window

The tool window also opens when you run a client-side application in the special Code Coverage mode to find unused JavaScript, TypeScript, and CSS code. In this mode, the tool window shows how much of code in every file and folder was used.

Coverage report: coverage is shown in the editor

Toolbar

ItemDescription
the Up buttonClick this button to go up one level.
the Jump to Source buttonWhen this button is pressed, source code of the class selected in the tool window, automatically opens in a separate editor tab, and gains the focus.
the Jump from Source buttonWhen this button is pressed, when source code of certain class gets the focus in the editor, the corresponding node is automatically highlighted in the tool window.

Context menu

ItemShortcutDescription
Jump to SourceF4Choose this command to open the selected file in the editor.

Title bar context menu and buttons

You can right-click the window title bar and use the context menu to configure its viewing mode, associate the window with a different tool window bar, or resize and hide the window.

You can also use the toolbar buttons:

ItemShortcutDescription
Scroll from Editor

Automatically sets the focus on the object name in the Project view when the editor area is in focus.

Hide tool windowShift+Escape

Hide the tool window.

To hide all the tool windows, press Ctrl+Shift+F12.

Last modified: 08 March 2021