• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

valkyrjaio / sindri-java / 30510857961
100%

Build:
DEFAULT BRANCH: 26.x
Ran 30 Jul 2026 03:20AM UTC
Jobs 1
Files 90
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jul 2026 03:19AM UTC coverage: 100.0%. Remained the same
30510857961

push

github

web-flow
[CI] Fail the JUnit build below 100% coverage (#67)

# Description

Coverage was reported here and enforced nowhere. `junit` ran `test`
finalized by `jacocoTestReport`,
so the report was *generated* and then nothing asserted anything about
it —
`jacocoTestCoverageVerification` was never wired in. A build at 55%
passed exactly like one at 100%,
and the only thing that noticed a drop was Coveralls, *after* push, on
an already-open PR.

The architecture guide's definition of done is 100% line **and** branch,
per file, and "must never
drop". This makes the gate say so.

## Two rules, not one

A bundle-wide rule alone is not enough, and there is a concrete case
proving it:
[sindri-java#62](https://github.com/valkyrjaio/sindri-java/pull/62)
landed a new class at **65% line
/ 50% branch** while the repo-wide number only fell from 100% to 96.37%.
A large, well-covered
codebase absorbs one entirely untested new class almost without moving.

So the verification carries a **bundle** rule *and* a per-**CLASS**
rule, both at 100% line and
branch. Confirmed against a deliberately uncovered probe class — note
how differently the two rules
report the same file:

```
Rule violated for bundle junit: lines covered ratio is 0.99, but expected minimum is 1.00
Rule violated for bundle junit: branches covered ratio is 0.99, but expected minimum is 1.00
Rule violated for class io.valkyrja.probe.ThresholdProbe: lines covered ratio is 0.00, ...
Rule violated for class io.valkyrja.probe.ThresholdProbe: branches covered ratio is 0.00, ...
```

The bundle barely notices; the class rule names the file.

## Exclusions are shared, not duplicated

The report's class-directory exclusions are lifted into a single
`coverageExclusions` list that both
`jacocoTestReport` and `jacocoTestCoverageVerification` consume. Scoping
only one of them would let
the gate quietly measure a different set of classes than the report
shows.

## Types of changes

- [x] Improvement _(non-breaking change whic... (continued)

618 of 618 branches covered (100.0%)

Branch coverage included in aggregate %.

1679 of 1679 relevant lines covered (100.0%)

4.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30510857961.1 30 Jul 2026 03:20AM UTC 90
100.0
GitHub Action Run
Source Files on build 30510857961
  • Tree
  • List 90
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30510857961
  • b6b57bda on github
  • Prev Build on 26.x (#30509050255)
  • Next Build on 26.x (#30512678559)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc