I use the Gatling plugin in my spring-boot application to run the REST API performance tests presented as part of the application, so I need my application to work before running the gatling tests.
Since the execution of Gatling is associated with the default integration-test phase, so I tried to use start-stop goals for the pre-integration and post-integration phases, respectively, but below the error for the same:
[[ERROR] Failed to fulfill the goal org.springframework.boot: spring-boot-Maven-plugin: 1.5.1.RELEASE: project start (pre-integration-test): Spring application did not start before the set timeout (30000 ms → [Help 1]]
Just add that the gatling running target mvn gatling:executeworks fine when the application is running, but I want to run it as part of the maven phases.
source
share