Skip to content
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

feat: include executed statements of exception throwing block ignored by Jacoco #118

Merged
merged 6 commits into from
Nov 2, 2021

Conversation

andre15silva
Copy link
Member

Minimizes #109

When the source code is available, we now include the statements of the block where an exception was thrown.

This way, the executed statements just before the exception, which might be ignored by Jacoco due to the exception limitation, are included in the coverage result.

This is not a complete fix since, sometimes, the stack-trace is lost in try/catch's of the original project.

@andre15silva
Copy link
Member Author

We are missing a test case and some documentation. Opening for CI.

Already works locally with Nopol's (cl2, cl4, and cm1)

@andre15silva andre15silva changed the title Include executed statements of exception throwning block ignored by Jacoco Include executed statements of exception throwing block ignored by Jacoco Oct 31, 2021
@andre15silva andre15silva force-pushed the include-block branch 2 times, most recently from ed89004 to e53df1b Compare October 31, 2021 23:41
Signed-off-by: André Silva <[email protected]>
@monperrus
Copy link
Collaborator

monperrus commented Nov 1, 2021 via email

@andre15silva andre15silva marked this pull request as ready for review November 1, 2021 09:24
@andre15silva
Copy link
Member Author

andre15silva commented Nov 1, 2021

It is ready for review.

@monperrus monperrus changed the title Include executed statements of exception throwing block ignored by Jacoco feat: include executed statements of exception throwing block ignored by Jacoco Nov 2, 2021
@monperrus monperrus merged commit 90f7032 into ASSERT-KTH:master Nov 2, 2021
@monperrus
Copy link
Collaborator

thanks a lot @andre15silva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants