Set up JaCoCo + CI pipeline #14

Closed
opened 2026-03-27 15:01:33 +00:00 by thib8956 · 0 comments
Owner

Priority: P2 — Lower

Context: The project currently has 57 tests across 10 test classes but no coverage measurement or CI pipeline. The testing audit graded coverage at B- and recommended enforcing a coverage gate to prevent regressions as new tests are added.

Scope: pom.xml + new CI workflow

Goal:

  • Add JaCoCo plugin with 80% line coverage gate
  • Enable parallel test execution in maven-surefire-plugin
  • Create CI pipeline: build → test → coverage report

JaCoCo config:

<plugin>
    <groupId>org.jacoco</groupId>
    <artifactId>jacoco-maven-plugin</artifactId>
    <version>0.8.11</version>
    <executions>
        <execution>
            <goals>
                <goal>prepare-agent</goal>
                <goal>report</goal>
                <goal>check</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <rules>
            <rule>
                <element>CLASS</element>
                <limits>
                    <limit>
                        <counter>LINE</counter>
                        <value>COVEREDRATIO</value>
                        <minimum>0.80</minimum>
                    </limit>
                </limits>
            </rule>
        </rules>
    </configuration>
</plugin>

Estimate: 1 hour
Dependencies: Most valuable after test coverage improves (issues #6–#13)

**Priority:** P2 — Lower **Context:** The project currently has 57 tests across 10 test classes but no coverage measurement or CI pipeline. The testing audit graded coverage at B- and recommended enforcing a coverage gate to prevent regressions as new tests are added. **Scope:** `pom.xml` + new CI workflow **Goal:** - Add JaCoCo plugin with 80% line coverage gate - Enable parallel test execution in maven-surefire-plugin - Create CI pipeline: build → test → coverage report **JaCoCo config:** ```xml <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.11</version> <executions> <execution> <goals> <goal>prepare-agent</goal> <goal>report</goal> <goal>check</goal> </goals> </execution> </executions> <configuration> <rules> <rule> <element>CLASS</element> <limits> <limit> <counter>LINE</counter> <value>COVEREDRATIO</value> <minimum>0.80</minimum> </limit> </limits> </rule> </rules> </configuration> </plugin> ``` **Estimate:** 1 hour **Dependencies:** Most valuable after test coverage improves (issues #6–#13)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: thib8956/new-shapes#14