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.

  • Using a Docker image to build and deploy as part of a build matrix
  • Are there docker remote api command line client's
  • How do I get environment variables to persist into an imported Docker image
  • docker build apt-get update failed with custom network
  • docker-machine ls shows state timeout whenever another docker machine is created
  • Data Space Used not matching docker images output
  • 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

    <configuration>
        <skip>true</skip>
    </configuration>
    

    I have created a sample project at https://github.com/abroer/cucumber-integration-test.git

    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.

  • can't acces mongo from inside docker
  • How to develop applications with Docker which are in separate repositories
  • docker apache passenger: error cannot load such file bundler/setup (LoadError)
  • Running MongoDB from Docker
  • How to log in gcloud with a dockerfile
  • Find what tags will be downloaded with `docker pull ubuntu`
  • 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 https://maven.apache.org/surefire/maven-failsafe-plugin/integration-test-mojo.html#includes . 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.