2

I'm trying to run JUnit Test parallel with Docker. I use a database instance which stored on Amazon AWS RDS. I should run the database instance in a seperate Docker Image. The plan is to run every JUnit test in it's own Docker instance.

Currently I have my jar-File with all my Unit-Tests, including Maven Configuration, Git and Jenkins. I tried to run my jar-File in a Docker Container, which was successful. Are there any existing plugins out there for maybe Jenkins or Maven that can help me execute my tests in parallel?

Any tipps or references would be really appriciated. : )

Thanks,

plitvica
  • 31
  • 5
  • is the docker instance on local or in AWS ? – mebada Apr 23 '16 at 12:30
  • I only have my MySQL database instance on AWS. Docker is installed local on my machine. – plitvica Apr 24 '16 at 02:35
  • There is no official maven/docker plugin .. but you may try this http://giallone.blogspot.com.eg/2014/03/integration-testing-with-maven-and.html – mebada Apr 24 '16 at 13:35
  • @plitvica Did you ever find a solution for running in parallel? – ALM Jul 15 '16 at 05:31
  • hey ALM, yes i found a soulution for me. I used Maven to integrate the "spotify/docker-client" library to start Docker container from Java. In the JUnit API is a class "ParallelComputer" integrated. This class gives you the possibilty to run tests in parallel. see this example here: [example ParallelComputer](http://stackoverflow.com/questions/5529087/how-to-make-junit-test-cases-execute-in-parallel) – plitvica Aug 22 '16 at 08:34

0 Answers0