maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PeteTh <>
Subject Re: mvn site doesn't run JUnits configured to run during 'integration-test' phase
Date Tue, 25 Sep 2007 15:55:34 GMT

Anyone ? 

PeteTh wrote:
> Just wanted to ask whether there is any plan for supporting
> 'Integration Tests' in Maven Site Reporting. Currently although there
> is a well know 'integration-test' phase in Maven, if Surefire JUnits
> are configured to run during this phase, they are not executed during
> a 'mvn site-deploy'.
> We have our Junits with different suffixes :-
>    *  - for normal JUnits
>    * - for Integration Test Junits (selenium etc)
> The former get run during 'test' phase, the latter during
> 'integration-test' phase.
> All works great for a normal  mvn install / deploy, but when we do mvn
> site-deploy the integration tests don't get run.  There was a thread
> about this a while ago. It seems the site plugin only expects tests to
> be run in 'test' phase.
> What I found was it doesn't matter what is put in the <reporting>
> section of the pom regarding configuring the 'maven-surefire-plugin'
> itself (i.e. <configuration>) .
> Instead Maven seems to use the 'maven-surefire-plugin' configuration
> from the <build> section's 'test' phase <configuration> EVEN when
> doing a 'site' goal.
> We really need some of the JUnits run during 'integration-test' phase
> as 'pre-integration-test' phase needs to occur to start container
> using cargo.
> Is this a simple fix to the site or reporting plugins ?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message