[infinispan-issues] [JBoss JIRA] (ISPN-2097) Tear down methods should run even if the test method failed

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Wed Jun 6 13:06:17 EDT 2012


     [ https://issues.jboss.org/browse/ISPN-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Galder Zamarreño updated ISPN-2097:
-----------------------------------

           Status: Resolved  (was: Pull Request Sent)
    Fix Version/s: 5.1.x
       Resolution: Done

    
> Tear down methods should run even if the test method failed
> -----------------------------------------------------------
>
>                 Key: ISPN-2097
>                 URL: https://issues.jboss.org/browse/ISPN-2097
>             Project: Infinispan
>          Issue Type: Task
>          Components: Test Suite
>    Affects Versions: 5.1.5.FINAL
>            Reporter: Dan Berindei
>            Assignee: Dan Berindei
>             Fix For: 5.1.x, 5.2.0.ALPHA1
>
>
> By default TestNG doesn't run methods annotated with `@AfterMethod`/`@AfterTest`/`@AfterClass` if the test method failed.
> This means we have to write `alwaysRun=true` explicitly, or the method won't run after a failure and it may leave cache managers lying around.

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

       



More information about the infinispan-issues mailing list