-
Notifications
You must be signed in to change notification settings - Fork 51
Fix failed tests in CPD reports that were hidden by overly broad catch clauses #192
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
Conversation
| } catch (final Exception e) { | ||
| assertTrue(e.getMessage() | ||
| .startsWith("CPD " + AbstractPmdReport.getPmdVersion() + " has found 1 duplication.")); | ||
| } catch (final MojoFailureException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are asserts for expections, see https://junit.org/junit5/docs/current/user-guide/#writing-tests-exceptions-expected
elharo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL. Finally figured out got all the tests passing across the matrix
No description provided.