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.

  • Limitations of Docker Ambassador? Syslog on other Docker machine filling up quickly
  • docker does not create folder in nginx html root
  • How to see which docker volume is or was being used by which container
  • ELK docker access via localhost
  • Docker mount socket volume
  • Unable to use docker due to ZScaler and certificate issues
  • 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.

  • Connect to a Service running inside a docker container from outside
  • Docker: Error processing tar file(exit status 1): Error setting up pivot dir: not a directory
  • Where should i run my grunt build step when building my docker image for staging and production environments?
  • docker: 'network' is not a docker command
  • Docker-Compose error in powershell only: “Couldn't connect to docker daemon…”
  • Can I use logspout for global syslog logging on Docker swarm?
  • 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.