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
When using several testing frameworks (the case at least with EUnit, Common Test, and PropEr) with rebar3, the total coverage data is calculated right, but per-method (?) coverage shown is actually + <that method's coverage>.
I'm guessing something funny happens with a freshly started cover server that does not happen with a previously running one, despite the following procedure to load cover data being fully identical in all cases.
rebar3 do eunit -c, ct -c && rebar3 do proper -c, cover also works fine. Starting to wonder if there's something in cover compilation that primes the cover pid properly and doesn't happen on a single cover run.
Turns out to load coverdata properly, you need to have relevant modules cover-compiled. Forcing a cover compilation on rebar3 cover does fix the problem.
Current behaviour
When using several testing frameworks (the case at least with EUnit, Common Test, and PropEr) with rebar3, the total coverage data is calculated right, but per-method (?) coverage shown is actually + <that method's coverage>.
Expected behaviour
All coverages are calculated correctly.
Proof of concept
https://bitbucket.org/0player/cover_test
The text was updated successfully, but these errors were encountered: