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
Scala 3 coverage of my project is still significantly lower than scala 2 (~ 20% for statements and 27% for branches)
I've tried to inspect reports to see differences.
In general Scala 3 has much more statements and branches. Why this may be so?
Scala 3 has much more classes then Scala 2. And looks like this is because of $anon class. I've tried to look closer and now macro generated code is also covered. IMO macro generated by some library code should not be covered by default, since library users are not testing libraries, but their own code.
So is it just more precise score and this is a desired behavior or not?
Scala 2.13 report
Scala 3 report
Scala 2.13 report
Scala 3 report
Statements
The text was updated successfully, but these errors were encountered:
@goshacodes Thanks for the issue. It is probably a bug, Scala 3's coverage generation mostly just tries to be as close to Scala 2's coverage results as possible.
Can you provide some reproduction code/steps for generating your coverage data? A minimized snippet is ideal, but for coverage a repo will also do.
Compiler version
3.3.4
Problem
Scala 3 coverage of my project is still significantly lower than scala 2 (~ 20% for statements and 27% for branches)
I've tried to inspect reports to see differences.
$anon
class. I've tried to look closer and now macro generated code is also covered. IMO macro generated by some library code should not be covered by default, since library users are not testing libraries, but their own code.So is it just more precise score and this is a desired behavior or not?
Scala 2.13 report
Scala 3 report
Scala 2.13 report
Scala 3 report
Statements
The text was updated successfully, but these errors were encountered: