Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
If needed, refer parent task for more details.
- remove Junit3-specific parts of API of GridAbstractTest and its subclasses
- remove dependencies from Junit 3 in Maven (if there are any)
- migrate tests that were missed at prior steps for various reasons:
- untangle design of IgnitePdsContinuousRestartTest and its subclass which currently conflict with Junit4 execution because of using constructors and make them properly use @Test annotation
- find out why WalCompactionTest.testCompressorToleratesEmptyWalSegmentsFsync appears to start running slow / timing out after adding Junit 4 annotations (reproduced this on teamcity and locally as was discovered in
IGNITE-10175) - find out why IgniteTwitterStreamerTest runs fine under JUnit 3 but starts failing after move to JUnit 4
- IgniteCachePartitionedQuerySelfTest, IgniteCacheReplicatedQueryP2PDisabledSelfTest, ComputeUtilsTest, CacheBasedDatasetBuilderTest, CacheBasedDatasetTest, GridPartitionedCacheJtaLookupClassNameSelfTest, GridReplicatedCacheJtaLookupClassNameSelfTest (there were problems migrating these at
IGNITE-10176) - find out why tests in logging suite failed on teamcity (not locally) when setup method was annotated @Before
- note part of this work related to IgniteConfigVariationsAbstractTest is expected to be done separately per
IGNITE-10739
- in tests suite classes, change extends TestSuite to either @RunWith(AllTests.class) or @Suite.SuiteClasses
- find and update all Junit3-specific code that extends TestCase
- execute junit related inspections of IDE and analyse results
- remove redundant references to JUnit4.class if there are any (like in @RunWith(JUnit4.class))
per discussion with EdShangGG plan to to do this in a separate ticket for smoother merges -IGNITE-10758
Side note if for some reason it turns out critically important to keep test suites names (by default Junit 4 will use suite class names instead), approach with custom description annotation described here can be used to address that.
Attachments
Issue Links
- depends upon
-
IGNITE-10175 migrate core module tests from Junit 3 to 4
- Resolved
-
IGNITE-10176 migrate non-core modules tests from Junit 3 to 4
- Resolved
- is depended upon by
-
IGNITE-10178 change tests that fail("Ignite JIRA ticket URL") to @Ignore("Ignite JIRA ticket URL")
- Resolved
-
IGNITE-10179 Change new tests root to use @BeforeClass and @AfterClass instead of isFirstTest() and isLastTest()
- Resolved
-
IGNITE-10180 Investigate migration from Junit 4 to 5
- Resolved
-
IGNITE-10629 Migration follow up: check for old style tests that could be slipped through in transition period
- Resolved
-
IGNITE-10758 remove from tests scaffolding annotations "@RunWith(JUnit4.class)" and their respective imports
- Resolved
-
IGNITE-10208 Verify list of tests after migration to Junit 4 against some prior reference (follow-up to IGNITE-10177)
- Open
-
IGNITE-10739 get rid of using JUnit 3 API in IgniteConfigVariationsAbstractTest
- Resolved
- links to