java - How can I prevent tests from running during deploy? -
currently have surefire configured though spring boot's bom.
i have tests running during deploy though there seems issue 1 of them... said same test passes fine in previous part of pipeline. don't need these tests run twice.
i part of parent bom (has springs bom parent)
how can configure tests not run during deploy phase? mvn deploy
, running mvn test
, mvn verify
must continue work normal.
you can achieve using commands while deploying or in pom.xml skip entire unit test, uses argument -dmaven.test.skip=true
mvn install -dmaven.test.skip=true
or in pom.xml
<configuration> <skiptests>true</skiptests> </configuration>
Comments
Post a Comment