I am wondering. How do you start a springboot application from a unit test? I am working on building an integration test suite, and I want to start the application in the test so the integration tests can run. It seems like there should be a pretty straight forward way to do this, but I don't see how to do it.
Asked
Active
Viewed 11 times
0
-
Do you use Maven? – Nikolas Charalambidis Apr 03 '20 at 22:39
-
Im using gradle. I dont just want to execute all the tests. I want to startup the actual application and then run test against it. – slipperypete Apr 03 '20 at 22:40
-
What do you mean executed right after build? You mean once the appliaction is deployed? Is starting the application in the build server unusual, or what is unusual? – slipperypete Apr 03 '20 at 22:44
-
This guy actually helped me... https://stackoverflow.com/questions/44582692/spring-boot-application-is-starting-up-from-a-junit-test-but-unable-to-access-th – slipperypete Apr 03 '20 at 22:50