views:

30

answers:

0

I have the following in my pom.xml

        <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.6</version>
            <configuration>
                <excludes>
                    <!-- exclude integration tests -->
                    <exclude>**/IT*.java</exclude>
                </excludes>
        <!-- Enable the following for Cassandra unit test 
             support --> 
        <forkMode>pertest</forkMode>
            </configuration>
        </plugin>

when I execute 'mvn test', in the end I only get results in TEST-TestSuite.txt for the last test run.

I do want forking enabled because I'm testing some Cassandra interactions and I'd like to do intermittent database cleanup.

$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.6.0_18
Java home: /usr/java/jdk-1.6.0_18/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-24-generic" arch: "amd64" Family: "unix"