Created
September 4, 2025 09:00
-
-
Save kevinhooke/2b2cd53724b5ebc0fe6778c51d4df1c0 to your computer and use it in GitHub Desktop.
JUnit run specific test in a Maven submodule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mvn test -Dtest=package.testname -pl subprojectname -am -Dsurefire.failIfNoSpecifiedTests=false | |
| // -pl module name containing test | |
| // -am = also modules, to build dependent modules | |
| // -Dsurefire.failIfNoSpecifiedTests=false = don't fail if dependent modules don't contain any tests |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment