You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/01/23 19:54:55 UTC

[jira] Closed: (MNG-4527) Surefire tests in integration-test phase are not executed

     [ http://jira.codehaus.org/browse/MNG-4527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4527.
----------------------------------

    Resolution: Incomplete
      Assignee: Benjamin Bentmann

The mere POM is not enough to actually run a build or reproduce your issue.

Regardless, I highly doubt that this works with any Maven version:
{code:xml}
<execution>
  <id>integration test</id>
  <goals>
    <goal>test</goal>
  </goals>
  <phase>integration-test</phase>
  <configuration>
    <testClassesDirectory>${basedir}/target/it-classes</testClassesDirectory>
    <testSourceDirectory>${basedir}/src/it/java</testSourceDirectory>
    <includes>
      <include>**/Test*.java</include>
    </includes>
  </configuration>
</execution>
{code}
Surefire doesn't compile tests, so the Compiler Plugin would need to compile the classes to {{target/it-classes}} for Surefire to have a chance and find any files in this directory. However, the required configuration for the Compiler Plugin is not present in the POM you provided.


> Surefire tests in integration-test phase are not executed
> ---------------------------------------------------------
>
>                 Key: MNG-4527
>                 URL: http://jira.codehaus.org/browse/MNG-4527
>             Project: Maven 2 & 3
>          Issue Type: Bug
>         Environment: jdk1.6
> Windows XP
> maven3-trunk (rev 897825)
>            Reporter: Martin Goldhahn
>            Assignee: Benjamin Bentmann
>         Attachments: pom.xml
>
>
> with Maven 2.0.10 I used to run an integration test with surefire. 
> With Maven3 the tests are not run, even if I specify <includes><include>**/Test*.java</include></include> to the surefire configuration.
> I attach the POM

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira