[rules-dev] Don't name your test *IntegrationTest, unless it needs to be run after "mvn package"

Geoffrey De Smet ge0ffrey.spam at gmail.com
Tue Mar 13 12:28:55 EDT 2012


Hi guys,

A small change in the droolsjbpm-parent pom's surefire plugin:
   "mvn test" will run all tests, except those with the name 
"*IntegrationTest".
The latter will be run by "mvn integration-test", which is run after 
"mvn package" and before "mvn install" automatically.

Any tests that were named *IntegrationTest but need to be run during 
"mvn test", have been renamed appropriately.
Only guvnor currently has tests named *IntegrationTest that have to be 
run after the war has been created by "mvn package".

PS: If you have tests that shouldn't run:
- either @Ignore them (so they are reported in hudson)
- or declare the class abstract: public abstract class ...
But do not exclude them in an overridden maven-surefire-plugin 
configuration.

-- 
With kind regards,
Geoffrey De Smet




More information about the rules-dev mailing list