TeamCity
 
You are viewing the documentation for an earlier version of TeamCity. View this page in the current documentation

IntelliJ IDEA

The IntelliJ IDEA coverage engine in TeamCity is the same engine that is used within IntelliJ IDEA to measure code coverage. This coverage attaches to the JVM as a java agent and instruments classes on the fly when they are loaded by the JVM. In particular that means that classes are not changed on the disk and can be safely used for distribution packages.

The IntelliJ IDEA coverage engine currently supports Class, Method and Line coverage. There is no Branch/Block coverage yet.

To configure code coverage using IntelliJ IDEA engine, follow these steps:

  1. While creating/editing Build Configuration, go to the Build Step page.

  2. Select the Ant, IntelliJ IDEA Project, Gradle or Maven build runner.

  3. In the Code Coverage section, select IntelliJ IDEA as a coverage tool in the Choose coverage runner drop-down.

  4. Set up the coverage options - refer to the description of the available options below.