I've checked the docs, mail archive, and open bug list for this one because I'm sure I'm just missing something stupid.

When surefire runs my unit tests it always attempts to run junit.framework.TestSuite$1 which, of course, fails. The surefire docs note that the default test exclude list is **/*$*, which is presumably meant to avoid this problem. For some reason though this test is not being skipped in my setup. I've tried manually setting the exclude list to the default value indicated by the docs as well other things meant to try and capture TestSuite (e.g. **/TestSuite*, /junit/framework/TestSuite*) and nothing seems to work.

I'm using Maven 2.0.8 with surefire plugin 2.4.2 on Java 1.5.0_13 on OS X 10.5.

Following is an example of one plugin configuration in my default build section and I have no other profiles overriding these settings:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <testFailureIgnore>true</testFailureIgnore>
                    <excludes>
                        <exclude>**/*$*</exclude>
                        <exclude>**/TestSuite*</exclude>
                        <exclude>/junit/framework/TestSuite*</exclude>
                        <exclude>/junit/**</exclude>
                    </excludes>
                </configuration>
            </plugin>

Can some one point out what I'm missing?  Thanks.

--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Security
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
[EMAIL PROTECTED], http://www.switch.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to