From issues-return-82326-apmail-maven-issues-archive=maven.apache.org@maven.apache.org Mon Dec 3 12:01:44 2012 Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 81A50D455 for ; Mon, 3 Dec 2012 12:01:44 +0000 (UTC) Received: (qmail 3401 invoked by uid 500); 3 Dec 2012 12:01:43 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 3119 invoked by uid 500); 3 Dec 2012 12:01:42 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 3084 invoked by uid 99); 3 Dec 2012 12:01:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 12:01:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 12:01:35 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 14BA8B048D for ; Mon, 3 Dec 2012 06:01:14 -0600 (CST) Date: Mon, 3 Dec 2012 06:01:14 -0600 (CST) From: "Markus Spika (JIRA)" To: issues@maven.apache.org Message-ID: <91930231.17529.1354536074089.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> In-Reply-To: <2121511345.17475.1354529473265.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> Subject: [jira] (SUREFIRE-930) Regression - Failsafe does not execute TestCases MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/SUREFIRE-930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Markus Spika updated SUREFIRE-930: ---------------------------------- Attachment: failsafe-test.7z example project when executed with failsafe 1.12.1 the build fails (IntegrationTest calling Assert.fail()) but when executed with failsafe 1.12.4 the build is successful (IntegrationTest not executed) > 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.2, 2.12.3, 2.12.4 > Environment: Windows, Solaris, Linux / Maven 3 / Java 1.6 > Reporter: Markus Spika > Priority: Blocker > Attachments: effective-pom.txt, failsafe-test.7z, 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: > > maven-failsafe-plugin > > ${integrationtest.reports.dir} > ${jacoco.agent.argLine} > > localhost:${cassandra.rpcPort} > localhost:${cassandra.rpcPort} > > > ${project.basedir}/src/test/resources/testng-integrationTest.xml > > > > > > integration-test > verify > > > > > 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