You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2007/02/23 08:06:23 UTC
[jira] Updated: (SUREFIRE-119) With testng, incorrect test numbers
are reported if setup method throws exception.
[ http://jira.codehaus.org/browse/SUREFIRE-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated SUREFIRE-119:
----------------------------------
Fix Version/s: (was: 2.3)
2.4
> With testng, incorrect test numbers are reported if setup method throws exception.
> ----------------------------------------------------------------------------------
>
> Key: SUREFIRE-119
> URL: http://jira.codehaus.org/browse/SUREFIRE-119
> Project: Maven Surefire
> Issue Type: Bug
> Affects Versions: 2.0 (2.2 plugin)
> Environment: Maven 2.0.4
> Java 1.5.0_06
> Windows XP
> Reporter: Mark Reynolds
> Priority: Minor
> Fix For: 2.4
>
> Attachments: project.zip
>
>
> If an exception is thrown in a testng setup method, the testing related numbers displayed by the plugin are incorrect.
> For example...
> Run a build with a single testng test class with three tests. If everything passes, the output looks like this:
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running mypackage.TestClassOne
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
> Results :
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
> If the same test class throws an exception in the setup method [annotated with @Configuration(beforeTestMethod=true)], the output looks like this
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running mypackage.TestClassOne
> Tests run: 6, Failures: 1, Errors: 0, Skipped: 5, Time elapsed: 0.156 sec <<< FAILURE!
> Results :
> Tests run: 6, Failures: 1, Errors: 0, Skipped: 5
--
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