You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Report immediately for each module instead of waiting -->
224
+
<deferReporting>false</deferReporting>
226
225
</configuration>
227
226
</plugin>
228
227
```
229
228
230
-
This configuration provides maximum detail, showing exactly which lines in each file need additional test coverage, similar to Python's coverage.py output.
231
-
232
229
## Integration with Existing Tools
233
230
234
231
### JaCoCo Plugin Compatibility
@@ -248,12 +245,12 @@ The console reporter automatically respects your existing JaCoCo configuration:
248
245
</configuration>
249
246
</plugin>
250
247
251
-
<!-- Console reporter automatically detects the above configuration -->
248
+
<!-- Console reporter automatically detects the above configuration -->
252
249
<plugin>
253
-
<groupId>io.github.svaningelgem</groupId>
254
-
<artifactId>jacoco-console-reporter</artifactId>
255
-
<version>1.0.0</version>
256
-
<!-- No additional configuration needed -->
250
+
<groupId>io.github.svaningelgem</groupId>
251
+
<artifactId>jacoco-console-reporter</artifactId>
252
+
<version>1.0.0</version>
253
+
<!-- No additional configuration needed -->
257
254
</plugin>
258
255
```
259
256
@@ -275,6 +272,45 @@ Works seamlessly with existing Sonar configurations:
275
272
</properties>
276
273
```
277
274
275
+
## Multi-Module Builds
276
+
277
+
In multi-module projects, the plugin:
278
+
1. Collects execution data from each module's JaCoCo configuration
279
+
2. Aggregates all coverage data across modules
280
+
3. By default, defers reporting until the last module (controlled by `deferReporting`)
281
+
4. Deduplicates coverage data to prevent double-counting shared code
0 commit comments