We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When using try-with-resources in a Java class, some lines are marked as partially covered in the generated report.
Expected behavior All lines should be fully covered (green in HTML report)
Reproducer Java class
public final class TryWithResources { private TryWithResources() {} public static void test() throws Exception { final AutoCloseable autoCloseable = new AutoCloseable() { @Override public void close() { System.out.println("closed"); } }; try (autoCloseable) { System.out.println("action"); } } }
Reports when calling the test method, the following coverage report is generated
test
Environment
1.0.754
The text was updated successfully, but these errors were encountered:
Added tests on try-finally and try-with-resources
0837dce
Resolves #628
325bd50
Fixed in 0.8.2
0.8.2
Sorry, something went wrong.
shanshin
Successfully merging a pull request may close this issue.
Describe the bug
When using try-with-resources in a Java class, some lines are marked as partially covered in the generated report.
Expected behavior
All lines should be fully covered (green in HTML report)
Reproducer
Java class
Reports
when calling the
test
method, the following coverage report is generatedEnvironment
1.0.754
The text was updated successfully, but these errors were encountered: