guglaid.blogg.se

Intellij code coverage
Intellij code coverage











#Intellij code coverage code#

If you want to jump to the source code in the editor, right-click the necessary class in the Code Coverage tool window and select Jump to Source F4. Refer to section Save coverage data to a file for details. Generate a code coverage report and save it to the specified directory. If this option is on, IntelliJ IDEA automatically locates in the tool window the files that you open in the editor. Otherwise, you need to double-click items to open them.

intellij code coverage

If this option is on, IntelliJ IDEA automatically opens the selected item in the editor. This information is available for the JaCoCo runner and for the IntelliJ IDEA runner with the Tracing option enabled. You can see the coverage result for classes, methods, and lines.īranch coverage shows the percentage of the executed branches in the source code (normally, these are the if/ else and switch statements). The report shows the percentage of the code that has been executed or covered by tests. If you want to reopen the Coverage tool window, select Run | Show Code Coverage Data from the main menu, or press Ctrl+Alt+F6. The Code Coverage tool windows appears right after you run a configuration with coverage and displays the coverage report. The Project tool window displays the percentage of the covered classes and lines for directories and the percentage of the covered methods and lines for classes. Results of the code coverage analysis are saved to the coverage folder in the IDE system directory.

intellij code coverage

Code coverage results are displayed in the Coverage tool window, in the Project tool window, and in the editor after you run at least one configuration with coverage.











Intellij code coverage