Skip to content

Maven does not run nested tests #1627

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

Closed
schauder opened this issue Sep 28, 2023 · 0 comments
Closed

Maven does not run nested tests #1627

schauder opened this issue Sep 28, 2023 · 0 comments

Comments

@schauder
Copy link
Contributor

Both, @Nested and plain static inner classes are affected.

The reason seems to be https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#excludes

mp911de added a commit that referenced this issue Sep 28, 2023
mp911de added a commit that referenced this issue Sep 28, 2023
mp911de pushed a commit that referenced this issue Sep 28, 2023
Maven Surefire and Failsafe plugins by default do not run inner classes, no matter if they are `@Nested` or just plain static inner classes.

This change removes this default exclude.

Closes #1627
See https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#excludes
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

No branches or pull requests

1 participant