cucumber tests on docker won't fire at the integration-test phase

I’m having some problems getting my cucumber/phantomJs test to run against the docker container.
My plan is to start the tomcat docker container at the maven pre-integration-test phase. Then at the integration-test phase i want to run the cucumber tests. For this i have disabled the surefire plugin to run test phase and included the failsafe plugin. Though some how the integration-test phase does nothing. I have no idea whats wrong with it.

The docker containers work fine and are started at the pre-integration-test phase. They also stop at the post-integration-test phase. The war is deployed and runs like it should run. No problems there.

  • Multiple versions of PHP through Nginx in Docker
  • Docker SSH Server Connection Refused
  • Compiling and running in different containers
  • Assetss from wwwroot cannot be found on Docker Image
  • Neo4j - Java heap space. Wrong query or settings?
  • kube-addons.service failed on CoreOS-libvirt installation
  • The cucumber tests run at the test phase when the surefire plugin is enabled for test. In the sample project you can change this by editing the pom at the section for the surefire plugin with to


    I have created a sample project at

    The project can be run using mvn clean verify

    Any suggestions on how to fire the cucumber tests at maven integration-test phase are appriciated.

  • How to create a multi container web application in docker
  • How to pass argument to Docker file ( specifically to FROM instruction)
  • Use git in jenkins pipeline with docker agent
  • Golang DNS without CGO on a Kubernetes Cluster
  • Why sometimes Java process builder only get 1 line of the process output?
  • how to make docker image ssh enabled
  • One Solution collect form web for “cucumber tests on docker won't fire at the integration-test phase”

    Your cucumber test runner is called RunCukesTest. This pattern is not included by default by the failsafe plugin, see . You have either to rename your class to say RunCukesIt or adjust the configuration of the failsafe plugin.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.