Coveralls coverage is zero
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Start with .github/workflows/test.yml and inspect how pongo.sh passes coverage to busted and how luacov-coveralls consumes the generated coverage files. Reproduce the workflow from the linked example repository, enable the mentioned verbose output, and trace why source_files is 0. Done means the GitHub test job still succeeds and the resulting Coveralls report shows non-zero coverage.
Written by the indexing model from the issue text.
Description
Hello, thanks for creating this template it helps a lot to start plugin development.
In test GitHub job you provide section to evaluate tests coverage and post it to coveralls.io. After building plugin coverage calculated and posted, but coveralls shows it as 0%.
Steps to reproduce:
- Generate repo from this template
- Update
.github/workflows/test.ymlby removing Kong Enterprice versions - Create an account on coveralls.io and add your new repo
- Kick off GitHub test action
- Observe coverage in your repo on coveralls.io
Expected result:
step (4): Build successfull
step (5): Coverage greater than 0% shown
Actual result:
step (5): Coverage 0% shown
Going through my steps I've created repo https://github.com/seprokof/kong-plugin , added repo to coveralls.io https://coveralls.io/github/seprokof/kong-plugin and build is https://github.com/seprokof/kong-plugin/actions/runs/5438212946 . I've added little bit of debug info but outputting content of coverage files during the build.
I've checked source of pongo.sh from kong-pongo and saw that you just forward --coverage argument to busted and saw your notice that coverage only calculated for unit tests, but based on content of coverage files I expect to see something greater than zero on coveralls.io.
I detected the only suspicious thing - if you enable verbose output of luacov-coveralls by adding -v switch you will see source_files: 0.
- Dominant language
- Lua
- Stars
- 258
- Forks
- 125
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Kong/kong-plugin
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Kong/kong-plugin#46 ·
All issues in Kong/kong-plugin
Similar issues
-
[Fix Package]: gladPossibly taken @luadebug claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
xmake-io/xmake-repo#11342 ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
MalloyTheDev/aseprite-mcp#279 ·
Maintainers usually reply within 1 day
-
Scan progress and ETC undercount retransmissions since 7.99x (stuck at 99.99% with --max-retries 0)Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
zigbeefordomoticz/wiki#391 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
libremesh/lime-packages#1302 ·