WebStorm 2018.2 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.

ws_jest_coverage_report.png
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.
ws javescript coverage report with editor

Toolbar

Item

Description

icons actions previousOccurence svg

Click this button to go up one level.

icons general autoscrollToSource svg

When 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.

icons general autoscrollFromSource svg

When 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

Item

Shortcut

Description

Jump to Source

F4

Choose this command to open the selected file in the editor.

Title bar context menu and buttons

You can right-click on 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:

Item

Shortcut

Description

icons general gearPlain svg

Click this button to access a subset of the context menu commands that let you configure window's viewing mode.

icons general hideToolWindow svgShift+Escape Use this icon or shortcut to hide the tool window.

When used in combination with the Alt key, clicking this icon hides all the tool windows attached to the same tool window bar.

Last modified: 19 November 2018

See Also

Procedures: