Skip to content

Enable JaCoCo with ≥60% happy-path line coverage gate#205

Merged
stepango merged 1 commit into
v2from
forma/test-coverage-jacoco
Jul 22, 2026
Merged

Enable JaCoCo with ≥60% happy-path line coverage gate#205
stepango merged 1 commit into
v2from
forma/test-coverage-jacoco

Conversation

@stepango

Copy link
Copy Markdown
Collaborator

Summary

  • Enable JaCoCo on plugins/ unit-tested modules with per-module + aggregate reports
  • Add happy-path filtered report + verification: LINE covered ratio ≥ 60% (wired into check / CI build)
  • Extra pure unit tests for deps model + catalog factories
  • Docs: docs/TEST-COVERAGE.md, README link, PROGRESS

Happy path (gated)

forma-core engine, config model, catalog generators, type-owned plugin registry / dep model, jvm.target — not AGP/Project apply paths (those stay sample-build covered).

Verify (host)

Suite Result
plugins/ test + happy-path verification SUCCESS — happy-path LINE ~95.7%
plugins/ ./gradlew build SUCCESS (includes gate)
includer/ test + functionalTest SUCCESS
depgen/ test + functionalTest SUCCESS
bazel-adapter/ test SUCCESS

Test plan

  • ./gradlew test jacocoHappyPathCoverageVerification in plugins/
  • Confirm gate rule LINE/COVEREDRATIO min=0.60 present
  • CI Plugins job green on this PR

Wire JaCoCo reports across plugins unit-tested modules, add a filtered
happy-path coverage report/verification (core engine + pure config/deps/jvm
surface), and fail check/build under 60% LINE covered ratio. Extra pure unit
tests for deps model/catalog factories; document in TEST-COVERAGE.md.
@stepango
stepango merged commit c345f10 into v2 Jul 22, 2026
8 checks passed
@stepango
stepango deleted the forma/test-coverage-jacoco branch July 22, 2026 16:27
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.

1 participant