You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Steve Stodola (JIRA)" <ji...@codehaus.org> on 2010/10/22 18:30:32 UTC
[jira] Created: (SUREFIRE-654) Surefire does not recognize
successful tests using TestNG with the invocationCount and
successPercentage parameters on the @Test annotation
Surefire does not recognize successful tests using TestNG with the invocationCount and successPercentage parameters on the @Test annotation
-------------------------------------------------------------------------------------------------------------------------------------------
Key: SUREFIRE-654
URL: http://jira.codehaus.org/browse/SUREFIRE-654
Project: Maven Surefire
Issue Type: Bug
Components: TestNG support
Affects Versions: 2.6
Environment: Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0-18
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.35-22-generic" arch: "amd64" Family: "unix"
Ubuntu 10.10
Reporter: Steve Stodola
Attachments: bugtest.tar.gz
Surefire does not recognize successful tests using TestNG with the invocationCount and successPercentage parameters on the @Test annotation. BugTest.java in the attached file has an invocationCount = 100 with a successPercentage = 1. 1 test in 100 needs to pass for the test to be considered successful. However when running *{{mvn clean test}}* Surefire reports the tests as failed. The generated report shows the tests as passing. Surefire should be identifying this test as passing.
--
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
[jira] Updated: (SUREFIRE-654) Surefire does not recognize
successful tests using TestNG with the invocationCount and
successPercentage parameters on the @Test annotation
Posted by "Steve Stodola (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Stodola updated SUREFIRE-654:
-----------------------------------
Attachment: surefire654.diff
This is a patch file that fixes the issue. In order to have this work a new entry needs to be added to the configuration section for the maven-surefire-plugin.
{code:title=pom.xml|borderStyle=solid}
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.6</version>
<configuration>
<testErrorIgnore>true</testErrorIgnore>
</configuration>
</plugin>
...
{code}
> Surefire does not recognize successful tests using TestNG with the invocationCount and successPercentage parameters on the @Test annotation
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-654
> URL: http://jira.codehaus.org/browse/SUREFIRE-654
> Project: Maven Surefire
> Issue Type: Bug
> Components: TestNG support
> Affects Versions: 2.6
> Environment: Apache Maven 2.2.1 (rdebian-4)
> Java version: 1.6.0-18
> Java home: /usr/lib/jvm/java-6-openjdk/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.35-22-generic" arch: "amd64" Family: "unix"
> Ubuntu 10.10
> Reporter: Steve Stodola
> Attachments: bugtest.tar.gz, surefire654.diff
>
>
> Surefire does not recognize successful tests using TestNG with the invocationCount and successPercentage parameters on the @Test annotation. BugTest.java in the attached file has an invocationCount = 100 with a successPercentage = 1. 1 test in 100 needs to pass for the test to be considered successful. However when running *{{mvn clean test}}* Surefire reports the tests as failed. The generated report shows the tests as passing. Surefire should be identifying this test as passing.
--
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