whisklabs / docker-it-scala

Docker integration testing kit with Scala
MIT License
431 stars 91 forks source link

Parallel test execution issue #99

Closed Fruzenshtein closed 7 years ago

Fruzenshtein commented 7 years ago

Hello I tried to use docker-it-scala and it works perfectly when I run tests separately. But what to do when I have TestA, TestB and TestC and all of them use PostgresDocker as example? As you know by default SBT run tests in parallel. No problem, I can turn off a parallel test execution.

But still curious about parallel execution with usage of docker-it-scala.

The main issue is a port which can not be used by multiple Docker containers simultaneously, what actually happens in a parallel test run.

viktortnk commented 7 years ago

Hi @Fruzenshtein . It is just the matter of Postgres example because it is bound to the same port on host. You can change this behaviour by adjusting configuration and finding out mapped port yourself (as with other examples). You would need to change a ReadyCheck as well.