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

Issue #847: Support assertWithMessage(...).fail() #848

Merged

Conversation

pbludov
Copy link
Contributor

@pbludov pbludov commented Jun 6, 2021

Issue #847

This is blocker for checkstyle/checkstyle#9142.

@coveralls
Copy link

coveralls commented Jun 6, 2021

Coverage Status

Coverage increased (+0.003%) to 98.782% when pulling a3cbe9c on pbludov:issue-847-assert-with-message-fail into 614f15b on sevntu-checkstyle:master.

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

items:

@pbludov pbludov force-pushed the issue-847-assert-with-message-fail branch 2 times, most recently from f266436 to 9556746 Compare June 6, 2021 14:52
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pbludov , please run regression report generation to amke sure there is no regression.

@rnveach
Copy link
Contributor

rnveach commented Jun 6, 2021

Sevntu regression on an existing check is only possible with https://github.com/checkstyle/contribution/blob/master/checkstyle-tester/sevntu_launch_diff.sh . See checkstyle/contribution#340 .

@pbludov pbludov marked this pull request as draft June 7, 2021 07:25
@pbludov pbludov force-pushed the issue-847-assert-with-message-fail branch from 9556746 to a3cbe9c Compare June 7, 2021 09:08
@pbludov pbludov marked this pull request as ready for review June 7, 2021 10:03
@@ -200,7 +202,7 @@
final String failClassSimpleName =
failClassName.substring(lastDotPos + 1, failClassName.length());

// when "import org.junit.Assert" -> accept "Assertions.fail()"
// when "import org.junit.jupiter.api.Assertions" -> accept "Assertions.fail()"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this issue. Just a mistype.

@pbludov
Copy link
Contributor Author

pbludov commented Jun 7, 2021

@pbludov , please run regression report generation to amke sure there is no regression.

Done: https://pbludov.github.io/issue-847-assert-with-message-fail/

@rnveach rnveach merged commit 96cac81 into sevntu-checkstyle:master Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants