Edit regex for test classes name inspection (JUnit 5)

Answered

Classes which represent an integration test are named *IT.java. Since the update to IntelliJ 2021.3 there is a warning that this class name does not include Test. Is is possible to edit/update the regexp, so that the below class name won't show this warning?

0
3 comments

Hello,

Thank you for the report!

Please follow the issue that seems to cover your case: https://youtrack.jetbrains.com/issue/IDEA-279616

1

Hi,

you can edit the pattern in the inspection settings page, `Alt-Enter | Right | Edit options`

If you want that the default pattern should be changed, then please follow Olga's link above

Thanks

Anna

0
Avatar
Permanently deleted user

Thanks for pointing this out to me, Olga Klisho. Changing the regular expression there resolves my question.

0

Please sign in to leave a comment.