Coverage Tool Window
This tool window appears on running PHPUnit tests with coverage, JSTestDriver tests with coverage, or Karma tests with coverage. In this tool window, explore the coverage measurement results.
In this section:
Toolbar
Item | Description |
---|---|
Click this button to go up one level. | |
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. | |
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. | |
Click this button to generate a code coverage report and save it to the specified directory. The button is not available when the tests are executed on Karma because a coverage report is actually generated on the disk every time Karma tests are run. The format of a coverage report can be configured in the configuration file, for example: // karma.conf.js
module.exports = function(config) {
config.set({ ...
// optionally, configure the reporter
coverageReporter: { type : 'html', dir : 'coverage/' }
...
});}; type values are acceptable:
| |
Click this button to close the tool window. | |
Click this button to show reference. |
Context menu
Item | Shortcut | Description |
---|---|---|
Jump to Source | F4 | Choose this command to open the selected file in the editor. |
Last modified: 29 March 2018