No coverage when Cluster is created inside `helper.lua`
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 41
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Luatest v0.5.3 (with 0.5.0 it works correctly)
Steps to reproduce using cartridge-cli:
cartridge create --name myapp
cd myapp
cartridge build
tarantoolctl rocks install luatest 0.5.3
tarantoolctl rocks install luacov
.rocks/bin/luatest --coverage -v
.rocks/bin/luacov .
cat tmp/luacov.report.out
The result will be an empty report.
It works on v0.5.0, but if you move Cluster object creation and cluster start from test/helper.lua to test/integration/api_test.lua you will get the report back
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Reproduce the issue in a cartridge-created app using the listed luatest and luacov commands. Compare Cluster creation and startup in test/helper.lua with test/integration/api_test.lua, then verify that coverage is recorded and tmp/luacov.report.out is no longer empty with luatest 0.5.3.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100