Commit 6fcf211
committed
ci: document Erlang cover binary / Codecov 0% badge limitation
The Codecov badge currently shows 0% even though the upload
succeeds and the local `mix test --cover` reports the correct
~91% coverage.
The root cause: the upload is `cover/lcov.info.coverdata`
(Erlang cover binary format produced by
`mix test --export-coverage`). The Codecov CLI accepts the
upload and reports 'Found 90 network files to report' in its
log, but its Erlang cover parser returns 0% line coverage for
the binary file in the current CLI release (v11.2.8).
The proper fix is to install excoveralls and post its JSON output
(`cover/excoveralls.json`) instead, which Codecov parses correctly.
That requires adding a new dep + switching the test_coverage tool
in mix.exs, which is a bigger change than this CI pass warrants.
Documented the workaround in codecov.yml so the next maintainer
sees the path forward. The local `mix test --cover` threshold
(80%, mix.exs) is still enforced at build time, so this is a
cosmetic issue with the badge, not a coverage gap.1 parent 5eca33d commit 6fcf211
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments