maven surefire plugin with parallels skips all tests when one test has @Ignore 
annotation (on mac os)
-----------------------------------------------------------------------------------------------------

                 Key: SUREFIRE-630
                 URL: http://jira.codehaus.org/browse/SUREFIRE-630
             Project: Maven Surefire
          Issue Type: Bug
          Components: Junit 4.7+ (parallel) support
    Affects Versions: 2.5
         Environment: Using Java version: 1.5
Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Java version: 1.5.0_22
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.4" arch: "i386" Family: "unix"
            Reporter: alex fanshawe


using parallels on tests with @Ignore, ignores all test in the entire tests 
package.
the test directory has 2 tests in it, one of them has @Ignore.
here's our sample from the pom:
<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
            <parallel>classes</parallel>
        </configuration>
    </plugin>
</plugins>

here's the mvn out put, without parallel and with:
[INFO] Compiling 2 source files to 
/Users/dev/trunk/netstream/test-parallel/target/test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Concurrency config is {parallel=classes, 
configurableParallelComputerPresent=false}
[INFO] Surefire report directory: 
/Users/dev/trunk/netstream/test-parallel/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

and with parallel commented out.

[INFO] Compiling 2 source files to 
/Users/dev/trunk/netstream/test-parallel/target/test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: 
/Users/dev/trunk/netstream/test-parallel/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running jackal.FirstTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.073 sec
Running jackal.SecondTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec <<< 
FAILURE!

Results :

Failed tests: 
  test(jackal.SecondTest)

Tests run: 2, Failures: 1, Errors: 0, Skipped: 1


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to