title: Running single integration test inside docker in maven
body: <p>I am trying to run integration testing on my maven project inside a docker container. I am using <a href="https://github.com/spotify/dockerfile-maven" rel="nofollow noreferrer">dockerfile-maven</a> plugin to move jar file inside my docker container and maven-failsafe-plugin to initiate my integration testing. But somehow integration testing starts before docker being built. Also it doesn't call my test functions.</p>
  <p>Here is my pom.xml snippet.</p>
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.12&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;integration-test&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                      &lt;includes&gt;
                          &lt;include&gt;**/*.java&lt;/include&gt;
                      &lt;/includes&gt;
                  &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;com.spotify&lt;/groupId&gt;
              &lt;artifactId&gt;dockerfile-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.3.7&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;default&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;build&lt;/goal&gt;
                          &lt;goal&gt;push&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;repository&gt;rohitbarnwal7/presto_him&lt;/repository&gt;
                  &lt;tag&gt;${project.version}&lt;/tag&gt;
                  &lt;buildArgs&gt;
                      &lt;JAR_FILE&gt;plugin-${project.version}-jar-with-dependencies.jar&lt;/JAR_FILE&gt;
                  &lt;/buildArgs&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  <p>Update: With above configuration, integration test class are being called but none of the test is actually executed.</p>
  <p>Any help will be highly appreciated. Thanks.</p>