You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Veselovsky (JIRA)" <ji...@apache.org> on 2016/09/28 14:41:20 UTC
[jira] [Resolved] (IGNITE-469) When running selected tests from a
test class #afterTestsStopped() is not invoked.
[ https://issues.apache.org/jira/browse/IGNITE-469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Veselovsky resolved IGNITE-469.
------------------------------------
Resolution: Won't Fix
The current solution is based on ability to set custom test Runner using org.junit.runner.RunWith JUnit annotation.
However, it appears that runner substitution does not fit our needs in all cases, because
(1) in case of test suite run { @RunWith } simply does not work.
(2) in some cases different { @RunWith } annotations are used (e.g. in osgi module).
So, the current solution is far from universal.
> 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: Ivan Veselovsky
> Priority: Minor
> Fix For: 1.8
>
> 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)