Running Spock tests in a Docker container from IntelliJ

Answered

Hi,

I'm currently developing a project which is run inside a docker container. I checkout the source locally and edit it using IntelliJ.

I mount the source inside the container which I then connect to via Docker Compose to run commands etc. For example, to run and debug a single test I create a remote debug config in IntelliJ and then from the container run:

./gradlew clean :api:functionalTest --tests "*indoor mobile session*" --debug-jvm

Is there a way, when running the app/tests directly from IntelliJ, to execute them inside the container?

Any help much appreciated,

Tom

0

Please sign in to leave a comment.