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

added JUnit5TestShouldBePackagePrivate to qulice pmd ruleset #1131

Merged
merged 3 commits into from Aug 22, 2022

Conversation

Graur
Copy link
Contributor

@Graur Graur commented Aug 22, 2022

Closes: #1130
Related to: objectionary/eo#1035
According to: https://pmd.github.io/latest/pmd_rules_java_bestpractices.html#junit5testshouldbepackageprivate

Reports JUnit 5 test classes and methods that are not package-private. Contrary to JUnit 4 tests, which required public visibility to be run by the engine, JUnit 5 tests can also be run if they’re package-private. Marking them as such is a good practice to limit their visibility.

Test methods are identified as those which use @Test, @RepeatedTest, @TestFactory, @TestTemplate or @ParameterizedTest.

@Graur
Copy link
Contributor Author

Graur commented Aug 22, 2022

@yegor256 Can you take a look, please?

@yegor256
Copy link
Owner

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Aug 22, 2022

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 6c5c4d1 into yegor256:master Aug 22, 2022
@Graur Graur deleted the 1130 branch August 22, 2022 15:02
@rultor
Copy link
Collaborator

rultor commented Aug 22, 2022

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 5min)

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.

to add JUnit5TestShouldBePackagePrivate to qulice pmd ruleset
3 participants