0

Our application has 15 integration tests, each written with @MicronautTest. The tests currently take long time to run, as db connection establishment and server restart happens at start and end of every test. How can we optimize build run time by avoiding server restart?

  • @MicronautTest will start server again and integration test are meant to run longer. Separate out integration test-cases from your unit test-cases. If you want to run all in same context, club all integration tests under same class with `@Test` well this is not recommended though. – Saurabh Oct 02 '22 at 06:27

0 Answers0