-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge nested classes for reports #498
Comments
@shanshin Do you mean only HTML report? |
@zuevmaxim |
I. Lambda
*don't forget about nested lambdas
Lambda always extends |
II. Companion Example
gives in XML
It should be disabled by flag |
This task will be taken into account when migrating to Kotlin Gradle Plugin. In the future, it will be moved to the Kotlin task tracker, or closed if it loses relevance. |
When generating HTML reports and during verification, any nested classes are analyzed and displayed separately.
From the point of view of Kotlin code, this is not entirely correct, because these class-files are features of the JVM compiler implementation and do not reflect the real coverage of the Kotlin class.
It is necessary to merge coverage for the following nested classes:
Example:
the coverage is evaluated separately for all classes, e.g.:
Expected:
Important!
At the same time, regular nested classes and inner classes should continue to be counted separately:
should give
The text was updated successfully, but these errors were encountered: