You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brandon Goodin (JIRA)" <ji...@codehaus.org> on 2007/02/16 02:05:37 UTC
[jira] Commented: (SUREFIRE-257) surefire-report reruns tests
[ http://jira.codehaus.org/browse/SUREFIRE-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_87663 ]
Brandon Goodin commented on SUREFIRE-257:
-----------------------------------------
I was not able to get report-only to work.
I have the following in my pom:
<build>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.3-SNAPSHOT</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>report-only</goal>
</goals>
</execution>
</executions>
</plugin>
...
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.3-SNAPSHOT</version>
</plugin>
</plugins>
...
</reporting>
<pluginRepositories>
<pluginRepository>
<id>apache.org</id>
<name>Maven Plugin Snapshots</name>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
I tried running the surefire-report:report-only goal with SNAPSHOT-2.3 and received the following:
**************************
mvn clean install surefire-report:report-only
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'surefire-report'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Required goal not found: surefire-report:report-only
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Feb 15 10:03:39 CST 2007
[INFO] Final Memory: 1M/3M
[INFO] ------------------------------------------------------------------------
**************************
I tried running the surefire-report:report goal with SNAPSHOT-2.3 and received the following:
**************************
mvn clean install surefire-report:report
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'surefire-report'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building iBATIS SQL Map
[INFO] task-segment: [clean, install, surefire-report:report]
[INFO] ----------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] 'report-only' was specified in an execution, but not found in the plugin
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Feb 15 10:05:18 CST 2007
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------
**************************
I even removed the executions configuration... still no go.
> surefire-report reruns tests
> ----------------------------
>
> Key: SUREFIRE-257
> URL: http://jira.codehaus.org/browse/SUREFIRE-257
> Project: Maven Surefire
> Issue Type: Bug
> Components: report plugin
> Environment: maven 2.0
> Reporter: Dirk Sturzebecher
> Attachments: MSUREFIREREP-6-patch.txt
>
>
> surefire-report reruns the tests. In my case this is not just annoying, but leads to a failure, as the VM (probably) is reused and leftovers from the first tests are (definitly) still present.
> I run maven with: clean package site
--
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