-
Notifications
You must be signed in to change notification settings - Fork 53
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
A class is not included in the test coverage report if it is written in a separate file on one line. #687
Comments
Hi, could you create a small reproducer project? |
I will try to explain. The class VerificationFailedException has a parameter(throwable) in the constructor, which is not used in the code. Creating a class object looks like the following
Then I check the type of an object not using class parameters
In that case, the class is not included in the test coverage report if it is written in a separate file on one line. But if the class parameter is used in the code, then the single-line class will be included in test coverage |
Furthermore, if you write it in several lines, it will be included in the test coverage report |
Describe the bug
Same test suite, but different instruction coverage measurements exist
Expected behavior
Сoverage measurements should be equal
Reproducer
When a class written in a separate file on one line, it is not included in test coverage. But if you write it in several lines, it will be included in the test coverage report.
Reports
Environment
The text was updated successfully, but these errors were encountered: