Closed ubald closed 9 years ago
Actually after more testing I realized that only certain classes or packages are "randomly" covered but not all.
Isolated the issue down to
Compiler.keep(cls, false, true);//ignored in haxe 2_0_8
On line 170 (approx, I may have removed some blank lines) of MCover.hx
If I comment it out it runs correctly.
Apologies for the slow response - we have seen the issue effecting random packages as well.
Looks like something in Haxe 3.1 changed the underlying behavior of Compiler.keep
. It is concerning that it includes/ignores packages inconsistently/
As far as i can tell this line is now redundant, so it can be wrapped it in a conditional flag for haxever < 3.1.
I am using a CPP target with the latest haxe version, munit and mcover form haxelib, I set up everything like the doc says and the coverage always shows 0% event if I know I am testing code from the package specified in mcover's config.
I can provide more info/sample code in case it is not a known bug or something easily reproducible on your side.