You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Description is here, I thought that the bug is in rebar3, but it probably isn't.
To Reproduce
I'm not aware what the actual trigger is, but project that is tested with both proper and ct should exploit the behavior. Coverage for proper and ct independently both look correct! Minimal reproduce is in archive file (notice how line that is considered ignored in independent cases is considered unused in aggregated coverage). To reproduce, run rebar3 ct --cover, rebar3 eunit --cover, rebar3 proper --cover and finally rebar3 cover to look at the results.
Expected behavior
Aggregated coverage should be greater than independent coverages and ignored lines shouldn't be counted as unused
Okay, so the issue is that cover data is collected on different files. The issue is not related to cover aggregation, or any particular test utility, but to the way cover works.
After those steps, proper and ct cover data is not updated and is referring to old line numbers, resulting in false positives ad false negatives. This actually is user's (my) fault, but would it make sense to invalidate cover data if the file is changed? cover is using old cover data on modified files.
Is there any metadata in cover data that we could use for verifying that file was not modified?
Describe the bug
Description is here, I thought that the bug is in
rebar3
, but it probably isn't.To Reproduce
I'm not aware what the actual trigger is, but project that is tested with both
proper
andct
should exploit the behavior. Coverage forproper
andct
independently both look correct! Minimal reproduce is in archive file (notice how line that is considered ignored in independent cases is considered unused in aggregated coverage). To reproduce, runrebar3 ct --cover
,rebar3 eunit --cover
,rebar3 proper --cover
and finallyrebar3 cover
to look at the results.Expected behavior
Aggregated coverage should be greater than independent coverages and ignored lines shouldn't be counted as unused
Affected versions
OTP 26.1.2
Additional context
coverage_repro.tar.gz
The text was updated successfully, but these errors were encountered: