Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 911 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 911 Bytes

intellij-gradle-jacoco

Sample Project to expose IntelliJ bug which prevents Gradle-generated JaCoCo coverage from being properly displayed.

Setup

  1. Set IntelliJ to Delegate IDE build/run actions to gradle in File->Settings->Build, Execution, Deployment->Build Tools->Gradle->Runner.

Instructions

  1. Build->Rebuild Project
  2. Analyze->Show Coverage Data
  3. Add project-b/build/jacoco/test.exec

Expected result: Coverage > 0% Actual result: Coverage = 0%

Analysis

Project A and Project C have duplicate classes (by name and package, not by contents). Project B does not depend on either Project A or Project C. After showing the coverage execution data for only Project B, the IntelliJ logs show an error in trying to run the analysis against the duplicate classes. This seems like an unnecessary failure given that the coverage data does not include any references to those classes.