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

lfoppiano / grobid-quantities / 32657569994
39%

Build:
DEFAULT BRANCH: master
Ran 23 Aug 2026 06:19PM UTC
Jobs 1
Files 75
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

23 Aug 2026 06:17PM UTC coverage: 38.975%. Remained the same
32657569994

push

github

web-flow
Fix integration tests (#202)

* test: make the integration tests find grobid-home, and stop them sharing a JVM

`./gradlew integration` failed 18 of 252 tests, in
QuantityParserIntegrationTest and ValueParserIntegrationTest. Two
independent causes, both of which had to go.

**The tests shared one JVM.** Grobid keeps its state in statics -
GrobidProperties, the resolved grobid-home, the wapiti model registry -
so whichever test class initialises first decides for every class after
it. Both failing classes pass when run on their own and fail in the
full suite, which is the signature. Setting forkEvery = 1 on the
integration task turns the suite green: 252 tests, 0 failures. It costs
about two minutes instead of twenty seconds, acceptable for a task that
is not part of `build`.

This is also what CI was hitting. The manual integration workflow
reported exactly the same 18 failures in the same two classes, on a
runner whose log shows it had loaded values/model.wapiti - so its
grobid-home was fine and the path was never the problem there.

**The configured grobid-home was ignored.** initEngineForTests() read
grobidHome from config-test.yml and then called
GrobidProperties.getInstance() with no GrobidHomeFinder, so Grobid fell
back to its own default and the setting did nothing. Demonstrated:
pointing config-test.yml at a complete grobid-home changed nothing (6
failures before, 6 after), while passing the same path through a
GrobidHomeFinder made those tests pass.

findGrobidHome() now resolves it, taking the first candidate that
contains config/grobid.yaml rather than the first that merely exists:

  -Dorg.grobid.home=...   config-test.yml   ../grobid/grobid-home   ../grobid-home

The usable-versus-exists distinction is the point. A partially
populated ../grobid-home - models but no config - satisfies
GrobidHomeFinder's own existence check and shadows a complete
installation beside it, which is exactly the layout on hand here. When
nothing is usable the fa... (continued)

1019 of 3002 branches covered (33.94%)

Branch coverage included in aggregate %.

2670 of 6463 relevant lines covered (41.31%)

1.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32657569994.1 23 Aug 2026 06:19PM UTC 75
38.98
GitHub Action Run
Source Files on build 32657569994
  • Tree
  • List 75
  • 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 #32657569994
  • a83a13f5 on github
  • Prev Build on master (#32654404092)
  • Next Build on master (#33369395243)
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