A couple of points:

1. Have you considered using failsafe-maven-plugin to run your
integration tests? That way you can set up your integration test env
using pre-integration-test phase, tear it down in
post-integration-test phase and then check the results in the verify
phase... it might simplify your surefire plugin config as well.

2. I think the philosophy of surefire is that it will run test classes
in the order that it finds them.  If you need to run test classes in a
specific order, you need to create a test suite.

-Stephen

2009/6/25 Josephson, William (APG) <[email protected]>:
> I am using Maven 2.1.0, and the surefire plugin to run integration tests.
>
> I have the following execution element within my pom:
>
>                    <execution>
>                        <id>first</id>
>                        <phase>integration-test</phase>
>                        <goals>
>                            <goal>test</goal>
>                        </goals>
>                        <configuration>
>                            <includes>
>                                <include>**\SAM.java</include>
>                                <include>**\QA3.java</include>
>                                <include>**\cleanupQA3.java</include>
>                            </includes>
>                            <skip>false</skip>
>                        </configuration>
>                    </execution>
>
> I would expect that the tests within class SAM would be executed first, 
> followed by the tests in class QA3 etc.
>
> But instead the tests in class QA3 are performed first.
>
> Shouldn't the tests be performed at least in the order that the classes are 
> declared?
>
> Thanks,
>
> Bill Josephson
> Cengage Learning
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to