From c42ddae1c2738521d1331e07dfacd3b04d380233 Mon Sep 17 00:00:00 2001 From: dudiedri Date: Mon, 14 Sep 2026 01:10:12 +0300 Subject: [PATCH] Count the offline tests in the coverage report The Codecov job ran mvn -Dtest=*Preview*, which matches on class name. The offline tests added recently - HexUtilTest, TupleTest, BackendFactoryTest, BaseServiceErrorHandlingTest, Bech32UtilValidationTest and ProposalDeserializationTest - do not have Preview in their names, so they never ran there and none of their coverage was reported. The badge sat at 69% while the real figure was materially higher. Selects by exclusion instead: everything except the mainnet and preprod suites, which have their own workflows and are too slow and too rate-limited to belong in the coverage job. 175 tests now run there instead of 130, reporting 81.8% of lines and 71.2% of branches. Co-Authored-By: Claude Opus 5 --- .github/workflows/codecov.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index eb18c68..67985a3 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -41,6 +41,10 @@ jobs: - name: Install Dependencies run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Dgpg.skip - name: Run tests and collect coverage - run: mvn '-Dtest=*Preview*' -B test -Dgpg.skip + # Everything except the mainnet and preprod suites: the preview integration + # tests plus the offline unit tests. The previous '*Preview*' selector matched + # on class name, so none of the offline tests ran here and none of their + # coverage was ever reported. + run: mvn '-Dtest=!*Mainnet*,!*Preprod*' -B test -Dgpg.skip - name: Upload coverage to Codecov uses: codecov/codecov-action@v3