java - Skip integration tests in maven by directory -
our project structure looks (sorry formatting):
server/ pom.xml src/ main/ java/ test/ java/ it/ java/
i mvn clean test
skip tests in it/java regardless of name of test. solutions have seen depend on integration tests being in different package or having prefix on name indicate integration tests.
is there way exclude it/java running when run mvn clean test
? want able run integration tests running mvn integration-test.
your best best make multi-module project, , in module skip tests based on different maven properties. allow flexibility you're looking for.
Comments
Post a Comment