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

valkyrjaio / valkyrja-java / 30509241397
100%

Build:
DEFAULT BRANCH: 26.x
Ran 30 Jul 2026 02:44AM UTC
Jobs 1
Files 659
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 02:43AM UTC coverage: 100.0% (+0.02%) from 99.978%
30509241397

push

github

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

# 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)

1913 of 1913 branches covered (100.0%)

Branch coverage included in aggregate %.

6978 of 6978 relevant lines covered (100.0%)

4.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30509241397.1 30 Jul 2026 02:44AM UTC 659
100.0
GitHub Action Run
Source Files on build 30509241397
  • Tree
  • List 659
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30509241397
  • 4d9efbf6 on github
  • Prev Build on 26.x (#30423381995)
  • Next Build on 26.x (#30512674974)
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