Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Take a look at the <a href="http://maven.apache.org/plugins/maven-failsafe-plugin/integration-test-mojo.html#includes">failsafe docs</a> for the test names <code>failsafe</code> expects by default:</p> <pre><code>&lt;includes&gt; &lt;include&gt;**/IT*.java&lt;/include&gt; &lt;include&gt;**/*IT.java&lt;/include&gt; &lt;include&gt;**/*ITCase.java&lt;/include&gt; &lt;/includes&gt; </code></pre> <p>Are your tests named following one of these patterns? If not, try defining the <code>&lt;includes&gt;</code> element in the plugin configuration. Or change your test name(s) to fit the default pattern.</p> <hr> <p>Okay, now that we've verified the test class names - typically when I add executions to plugin config I do it something like this:</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;${version.maven.failsafe.plugin}&lt;/version&gt; &lt;configuration&gt; &lt;/configuration&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;failsafe-integration-tests&lt;/id&gt; &lt;phase&gt;integration-test&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;integration-test&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;failsafe-verify&lt;/id&gt; &lt;phase&gt;verify&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;verify&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p>This explicitly binds the <code>failsafe</code> plugin goals you want to run to the correct phases of the build lifecycle. I believe the <code>surefire</code> plugin is bound to the <code>test</code> lifecycle phase by default (for a jar, war, &amp; ejb anyway), but nothing is bound to <code>integration-test</code> or <code>verify</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload