Parallel Integration Tests With Random Ports On Jenkins
A common problem when doing end-to-end tests is colliding ports on you buildmachine with parallel execution. With the technology stack of Docker, Jenkins and Gradle I’ll demonstrate one solution I use in my current project to start the backend with a random port and use it in the test execution afterwards. Our situation is the following: You want to execute a test which starts your backend application and fires against it from the outside.