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
* version bump
* wip
* Make tests work at least
* Cleaning up tests even further
* WIP
* WIP
* Improving coverage
* WIP
* Optimize imports
* reformat
* Fix only knowing the last projects exclusions.
* WIP
* Exclude all generated code by default.
* All tests are working again now
* All tests are working again now
* Improved coverage a tiny bit.
* reformat/optimize
* Updated README.md
* Adding some other test for increasing the branch coverage
* Trying to improve coverage for these branches.
* Improving code coverage
* reformat
---------
Co-authored-by: Steven Van Ingelgem <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+82-16Lines changed: 82 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
# JaCoCo Console Reporter Maven Plugin
2
2
3
-
A custom Maven plugin that generates a textual tree-like coverage report from JaCoCo's execution data files, displaying coverage metrics (Class %, Method %, Branch %, Line %) for packages, source files, and the entire project.
3
+
A custom Maven plugin that generates a textual tree-like coverage report from JaCoCo's execution data files, displaying
4
+
coverage metrics (Class %, Method %, Branch %, Line %) for packages, source files, and the entire project.
4
5
5
6
## Features
7
+
6
8
- Reads coverage data from `jacoco.exec` files
7
9
- Analyzes class files from the project's build output directory
8
10
- Outputs a hierarchical console-based report with coverage metrics
@@ -12,14 +14,19 @@ A custom Maven plugin that generates a textual tree-like coverage report from Ja
12
14
- Automatic scanning for `jacoco.exec` files across modules
13
15
- Support for custom JaCoCo execution file patterns
14
16
- Combined weighted coverage score based on customizable weights
17
+
- Exclude target directory to ignore generated files
15
18
16
19
## Prerequisites
20
+
17
21
- Maven 3.x
18
22
- JaCoCo plugin configured in your project to generate `jacoco.exec`
19
23
20
24
## Installation
25
+
21
26
Add the plugin to your project's pom.xml:
27
+
22
28
```xml
29
+
23
30
<build>
24
31
<plugins>
25
32
<plugin>
@@ -40,7 +47,9 @@ Add the plugin to your project's pom.xml:
40
47
```
41
48
42
49
## Usage
50
+
43
51
Run the plugin after tests:
52
+
44
53
```bash
45
54
mvn verify
46
55
```
@@ -49,23 +58,25 @@ Ensure the JaCoCo plugin has executed beforehand to generate jacoco.exec.
0 commit comments