Skip to content

test(ledger): enforce 90% domain coverage gate - #149

Merged
tiana-code merged 1 commit into
mainfrom
feat/E-01-domain-coverage-gate
Jun 16, 2026
Merged

test(ledger): enforce 90% domain coverage gate#149
tiana-code merged 1 commit into
mainfrom
feat/E-01-domain-coverage-gate

Conversation

@tiana-code

Copy link
Copy Markdown
Owner

What

Wires a JaCoCo coverage-verification gate scoped to com.fincore.ledger.domain and closes the residual domain test gap.

  • jacocoTestCoverageVerification measures only com.fincore.ledger.domain.**, reading the fast unit test exec data (no Docker / no integrationTest), bound to check via dependsOn so it is not opt-in. Excludes **/*MapperImpl* and **/config/**.
  • LINE and BRANCH floors both 0.90 (matches the epic's literal "branch+line coverage of 90%").
  • DomainExceptionsTest (new): constructs every domain/exception/* type and drives the DomainException blank-message require on both paths.
  • EnumSanityTest: added AuditAction / AuditResult / AuditResourceType (they live under domain.enum, so they are in the gate bundle).

Evidence

Domain bundle measured LINE 123/123 = 1.000, BRANCH 47/47 = 1.000 (non-vacuous). Local gate green: test + jacocoTestCoverageVerification + detekt + spotlessCheck + assemble. jacocoTestCoverageVerification confirmed in the :services:ledger:check task graph.

Gates

critic GO-WITH-CHANGES (3 audit enums folded), code-reviewer APPROVE-WITH-NITS (folded), evaluator 0.95, security-auditor PASS.

Closes #53

Wire jacocoTestCoverageVerification scoped to com.fincore.ledger.domain only,
reading the unit test exec data (Docker-free), bound to check via dependsOn so
it is not opt-in. LINE and BRANCH floors at 0.90; excludes generated mappers and
config. Close the residual gap with DomainExceptionsTest (every domain exception
ctor plus the DomainException blank-message guard, both paths) and add the three
audit enums to EnumSanityTest. Domain bundle measures 100% line and branch.

Closes #53
@tiana-code
tiana-code merged commit 37d55d9 into main Jun 16, 2026
8 checks passed
@tiana-code
tiana-code deleted the feat/E-01-domain-coverage-gate branch June 16, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Domain unit tests to >90% coverage (coverage gate)

1 participant