Open
Description
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.
- 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

