ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yakov Zhdanov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-469) when running selected tests from a test class #afterTestsStopped() is not invoked.
Date Tue, 23 Jun 2015 14:35:18 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yakov Zhdanov updated IGNITE-469:
---------------------------------
    Fix Version/s:     (was: sprint-6)
                   sprint-7

> when running selected tests from a test class #afterTestsStopped() is not invoked.
> ----------------------------------------------------------------------------------
>
>                 Key: IGNITE-469
>                 URL: https://issues.apache.org/jira/browse/IGNITE-469
>             Project: Ignite
>          Issue Type: Bug
>          Components: build
>    Affects Versions: sprint-1
>            Reporter: Ivan Veselovsky
>            Assignee: Vladimir Ozerov
>             Fix For: sprint-7
>
>         Attachments: IGNITE-469--a.patch
>
>
> JUnit test infrastructure in Ignite has custom test engine that invokes #afterTestsStopped()
when org.apache.ignite.testframework.junits.GridAbstractTest#isLastTest() == true: 
> return cntrs.getStopped() == cntrs.getNumberOfTests();
> , where getNumberOfTests() is calculated by counting all the public class methods starting
with "test".
> When we execute selected tests (I guess, does not matter from maven or from IDE), cntrs.getStopped()
is always less than the total number of tests in the test class, so #afterTestsStopped() is
not executed. 
> This leaves unfinished processes like Ignite nodes that afterwards affect the behavior
of other tests.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message