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
{{ message }}
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
All lines are green except the one in the finally block that is yellow and code coverage is not 100%. I do not see any information why it is not green. The code runs on that line for sure as it is in a finally block.
Thanks for reporting this! Actually this is known behavior. JaCoCo (the library behind EclEmma) works on Java class files. The compiler creates two paths for finally blocks: One path for the exception case and another one for the non-exception case. Yellow means that one of the two paths is not covered by your test scenarion.
We have a feature request to filter certain compiler artifacts like the one you entcountered: jacoco/jacoco#15
I wrote a module that is tested and coverage tests are created with jacoco. There is the following code snippet:
All lines are green except the one in the finally block that is yellow and code coverage is not 100%. I do not see any information why it is not green. The code runs on that line for sure as it is in a finally block.
To reproduce:
The text was updated successfully, but these errors were encountered: