2

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.

Krish
  • 1,804
  • 7
  • 37
  • 65

1 Answers1

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
  • Can you please provide any sample to accomplish in-memory database? – Krish Oct 15 '17 at 11:06