Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support branch code coverage #90

Open
ligurio opened this issue Aug 15, 2021 · 1 comment
Open

Support branch code coverage #90

ligurio opened this issue Aug 15, 2021 · 1 comment

Comments

@ligurio
Copy link
Contributor

ligurio commented Aug 15, 2021

Is it possible to add support of branch coverage to luacov?
Right now luacov supports only coverage by statements and coverage by paths (#49) and branch coverage would be interesting too.

@hishamhm
Copy link
Member

Unfortunately, I don't think it's viable. We collect information based on what the Lua debug library provides, and it is not fine-grained at the branch level. Its finest grain is at VM instruction level, but would try to map each single instruction back to the Lua source code branches, and that would be implementation-dependent based on the Lua compiler code generation, which can change on each minor release; it doesn't sound very feasible.

I'd love to be proven wrong by a PR though! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants