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.

  • docker compose vs docker run - node container
  • Docker as provider for Vagrant
  • Gunicorn does not find main module with docker
  • How to create a docker cluster with MQ without Kubernetes
  • Docker image for project with separate client and server side codebase
  • i/o intensive java application speeds up on docker on limited resources
  • 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.

  • Kubernetes: how to set VolumeMount user group and file permissions
  • Which docker client and daemon is used by openshift origin to pull images when creating new-app?
  • docker-compose build error: command 'gcc' failed with exit status 4
  • Using docker and hosts file
  • Confluence Error 500 while setup
  • Using jenkins docker image
  • 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.