tarantool / tarantool/luatest

No coverage when Cluster is created inside `helper.lua`

Open
#151 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.