I have created spring boot application for all my repositories&entities. I need to disable the auto test run while building jar file because these repositories points to different databases. Can anyone please help me here ? Thanks.
Asked
Active
Viewed 1,387 times
2
-
How do you build it? Are you using maven or gradle or another tool? – barbakini Oct 13 '17 at 16:49
-
I am using maven. I have fixed it by adding property maven.test.skip in pom.xml – Krish Oct 13 '17 at 17:15
-
to build your app without running the tests do `mvn clean install -DskipTests` – Fabricio Oct 14 '17 at 11:28
1 Answers
0
I have fixed it by adding property in pom.xml
<maven.test.skip>true</maven.test.skip>

Krish
- 1,804
- 7
- 37
- 65
-
This way you disabled the tests for good, which is bad practice. You should instead have the database tests run against an in-memory database so that they don't need access to an external database. – Tom Oct 14 '17 at 10:10
-