maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Spika (JIRA)" <j...@codehaus.org>
Subject [jira] (SUREFIRE-930) Regression - Failsafe does not execute TestCases
Date Mon, 03 Dec 2012 10:11:13 GMT
Markus Spika created SUREFIRE-930:
-------------------------------------

             Summary: Regression - Failsafe does not execute TestCases
                 Key: SUREFIRE-930
                 URL: https://jira.codehaus.org/browse/SUREFIRE-930
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Failsafe Plugin
    Affects Versions: 2.12.4, 2.12.3, 2.12.2
         Environment: Windows, Solaris, Linux / Maven 3 / Java 1.6
            Reporter: Markus Spika
            Priority: Blocker
         Attachments: output.txt

I use failsafe to execute integration-tests configured via a TestNG.xml.

When upgrading failsafe to version 2.12.2 or higher it no longer executes the tests.

Its a multi-module maven 3 project.


snipped from child pom for integration tests:

            <plugin>
                <artifactId>maven-failsafe-plugin</artifactId>
                <configuration>
                    <reportsDirectory>${integrationtest.reports.dir}</reportsDirectory>
                    <argLine>${jacoco.agent.argLine}</argLine>
                    <systemPropertyVariables>
                        <tns.cassandra.hosts>localhost:${cassandra.rpcPort}</tns.cassandra.hosts>
                        <tns.cassandra.auditing.hosts>localhost:${cassandra.rpcPort}</tns.cassandra.auditing.hosts>
                    </systemPropertyVariables>
                    <suiteXmlFiles>
                        <suiteXmlFile>${project.basedir}/src/test/resources/testng-integrationTest.xml</suiteXmlFile>
                    </suiteXmlFiles>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
                            <goal>verify</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>



when building with version 2.12.1:



PS D:\dev\tns\rb-2.4\tns-test> mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TNS Test 2.4.6-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ tns-test ---
[INFO] Deleting D:\dev\tns\rb-2.4\tns-test\target
[INFO]
[INFO] --- jacoco-maven-plugin:0.6.0.201210061924:prepare-agent (pre-test) @ tns-test ---
[INFO] jacoco.agent.argLine set to -javaagent:D:\dev\.m2\repository\org\jacoco\org.jacoco.agent\0.6.0.201210061924\org.jacoco.agent-0.6.0.201210061924-runtime.jar=destfile=D:\dev\tns\rb-2.4\tns-test\.
.\target\coverage-reports\jacoco-it.exec,append=true,includes=com.bwin.tns.**,excludes=com.bwin.tns.heartbeat.infrastructure.DefaultHeartBeatSender,classdumpdir=D:\dev\tns\rb-2.4\tns-test\target\jacoc
o-classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ tns-test ---
[INFO] Using 'utf-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ tns-test ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ tns-test ---
[INFO] Using 'utf-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:reserve-network-port (reserve-network-port) @ tns-test
---
[INFO] Reserved port 56287 for cassandra.rpcPort
[INFO] Reserved port 56288 for cassandra.jmxPort
[INFO] Reserved port 56289 for cassandra.storagePort
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ tns-test ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 16 source files to D:\dev\tns\rb-2.4\tns-test\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ tns-test ---
[INFO] Surefire report directory: D:\dev\tns\rb-2.4\tns-test\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.186 sec

Results :

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

[INFO]
[INFO] --- jacoco-maven-plugin:0.6.0.201210061924:report (post-test) @ tns-test ---
[INFO] Skipping JaCoCo execution
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ tns-test ---
[INFO] Building jar: D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT.jar
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ tns-test ---
[INFO] No sources in project. Archive not created.
[INFO]
[INFO] --- maven-source-plugin:2.2.1:test-jar-no-fork (attach-sources) @ tns-test ---
[INFO] Building jar: D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT-test-sources.jar
[INFO]
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @ tns-test ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:test-jar (package-test-jar) @ tns-test ---
[INFO] Building jar: D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT-tests.jar
[INFO]
[INFO] --- cassandra-maven-plugin:1.1.0-1:start (default) @ tns-test ---
[INFO] Waiting for Cassandra to start...
[INFO] [WARN] 10:29:37,008 Generated random token 65990894043363026175130786445501630410.
Random tokens will result in an unbalanced ring; see http://wiki.apache.org/cassandra/Operations
[INFO] Cassandra cluster "Test Cluster" started.
[INFO] Cassandra started in 2.2s
[INFO]
[INFO] --- maven-failsafe-plugin:2.12.1:integration-test (default) @ tns-test ---
[INFO] Failsafe report directory: D:\dev\tns\rb-2.4\tns-test\target\failsafe-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.764 sec

Results :

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

[INFO]
[INFO] --- cassandra-maven-plugin:1.1.0-1:stop (default) @ tns-test ---
[INFO] Waiting for Cassandra to stop...
[INFO] Cassandra has stopped.
[INFO]
[INFO] --- maven-failsafe-plugin:2.12.1:verify (default) @ tns-test ---
[INFO] Failsafe report directory: D:\dev\tns\rb-2.4\tns-test\target\failsafe-reports
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ tns-test ---
[INFO] Installing D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT.jar to D:\dev\.m2\repository\com\bwin\tns\tns-test\2.4.6-SNAPSHOT\tns-test-2.4.6-SNAPSHOT.jar
[INFO] Installing D:\dev\tns\rb-2.4\tns-test\pom.xml to D:\dev\.m2\repository\com\bwin\tns\tns-test\2.4.6-SNAPSHOT\tns-test-2.4.6-SNAPSHOT.pom
[INFO] Installing D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT-test-sources.jar
to D:\dev\.m2\repository\com\bwin\tns\tns-test\2.4.6-SNAPSHOT\tns-test-2.4.6-SNAPSHOT-test-sources.jar
[INFO] Installing D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT-tests.jar to D:\dev\.m2\repository\com\bwin\tns\tns-test\2.4.6-SNAPSHOT\tns-test-2.4.6-SNAPSHOT-tests.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34.791s
[INFO] Finished at: Mon Dec 03 10:29:55 CET 2012
[INFO] Final Memory: 28M/498M
[INFO] ------------------------------------------------------------------------




when building with version 2.12.4 (.2 crashes because no report-directory created; .3 has
the same result):


[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TNS Test 2.4.6-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://nexus.bwin.com/content/groups/public/org/apache/maven/plugins/maven-failsafe-plugin/2.12.4/maven-failsafe-plugin-2.12.4.pom
Downloaded: https://nexus.bwin.com/content/groups/public/org/apache/maven/plugins/maven-failsafe-plugin/2.12.4/maven-failsafe-plugin-2.12.4.pom
(14 KB at 14.5 KB/sec)
Downloading: https://nexus.bwin.com/content/groups/public/org/apache/maven/plugins/maven-failsafe-plugin/2.12.4/maven-failsafe-plugin-2.12.4.jar
Downloaded: https://nexus.bwin.com/content/groups/public/org/apache/maven/plugins/maven-failsafe-plugin/2.12.4/maven-failsafe-plugin-2.12.4.jar
(49 KB at 220.3 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ tns-test ---
[INFO] Deleting D:\dev\tns\rb-2.4\tns-test\target
[INFO]
[INFO] --- jacoco-maven-plugin:0.6.0.201210061924:prepare-agent (pre-test) @ tns-test ---
[INFO] jacoco.agent.argLine set to -javaagent:D:\dev\.m2\repository\org\jacoco\org.jacoco.agent\0.6.0.201210061924\org.jacoco.agent-0.6.0.201210061924-runtime.jar=destfile=D:\dev\tns\rb-2.4\tns-test\.
.\target\coverage-reports\jacoco-it.exec,append=true,includes=com.bwin.tns.**,excludes=com.bwin.tns.heartbeat.infrastructure.DefaultHeartBeatSender,classdumpdir=D:\dev\tns\rb-2.4\tns-test\target\jacoc
o-classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ tns-test ---
[INFO] Using 'utf-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ tns-test ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ tns-test ---
[INFO] Using 'utf-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:reserve-network-port (reserve-network-port) @ tns-test
---
[INFO] Reserved port 56603 for cassandra.rpcPort
[INFO] Reserved port 56604 for cassandra.jmxPort
[INFO] Reserved port 56605 for cassandra.storagePort
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ tns-test ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 16 source files to D:\dev\tns\rb-2.4\tns-test\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ tns-test ---
[INFO] Surefire report directory: D:\dev\tns\rb-2.4\tns-test\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.446 sec

Results :

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

[INFO]
[INFO] --- jacoco-maven-plugin:0.6.0.201210061924:report (post-test) @ tns-test ---
[INFO] Skipping JaCoCo execution
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ tns-test ---
[INFO] Building jar: D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT.jar
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ tns-test ---
[INFO] No sources in project. Archive not created.
[INFO]
[INFO] --- maven-source-plugin:2.2.1:test-jar-no-fork (attach-sources) @ tns-test ---
[INFO] Building jar: D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT-test-sources.jar
[INFO]
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @ tns-test ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:test-jar (package-test-jar) @ tns-test ---
[INFO] Building jar: D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT-tests.jar
[INFO]
[INFO] --- cassandra-maven-plugin:1.1.0-1:start (default) @ tns-test ---
[INFO] Waiting for Cassandra to start...
[INFO] [WARN] 10:48:20,975 Generated random token 49700324597181482573175523696200886962.
Random tokens will result in an unbalanced ring; see http://wiki.apache.org/cassandra/Operations
[INFO] Cassandra cluster "Test Cluster" started.
[INFO] Cassandra started in 2.4s
[INFO]
[INFO] --- maven-failsafe-plugin:2.12.4:integration-test (default) @ tns-test ---
[INFO]
[INFO] --- cassandra-maven-plugin:1.1.0-1:stop (default) @ tns-test ---
[INFO] Waiting for Cassandra to stop...
[INFO] Cassandra has stopped.
[INFO]
[INFO] --- maven-failsafe-plugin:2.12.4:verify (default) @ tns-test ---
[INFO] Failsafe report directory: D:\dev\tns\rb-2.4\tns-test\target\failsafe-reports
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ tns-test ---
[INFO] Installing D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT.jar to D:\dev\.m2\repository\com\bwin\tns\tns-test\2.4.6-SNAPSHOT\tns-test-2.4.6-SNAPSHOT.jar
[INFO] Installing D:\dev\tns\rb-2.4\tns-test\pom.xml to D:\dev\.m2\repository\com\bwin\tns\tns-test\2.4.6-SNAPSHOT\tns-test-2.4.6-SNAPSHOT.pom
[INFO] Installing D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT-test-sources.jar
to D:\dev\.m2\repository\com\bwin\tns\tns-test\2.4.6-SNAPSHOT\tns-test-2.4.6-SNAPSHOT-test-sources.jar
[INFO] Installing D:\dev\tns\rb-2.4\tns-test\target\tns-test-2.4.6-SNAPSHOT-tests.jar to D:\dev\.m2\repository\com\bwin\tns\tns-test\2.4.6-SNAPSHOT\tns-test-2.4.6-SNAPSHOT-tests.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.364s
[INFO] Finished at: Mon Dec 03 10:48:22 CET 2012
[INFO] Final Memory: 38M/874M
[INFO] ------------------------------------------------------------------------




output.txt with "mvn clean install -X" output is attached

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message