Fix IT to use proper superclass and avoid using of different junit versions #1974
Open
Description
Is your feature request related to a problem?
- 80% of IT uses junit4 and 20% uses junit5 (jupiter).
- All IT classes should derive from
OpenSearchIntegTestCase
, but they derive fromOpenSearchRestTestCase
now (ref). - Any custom
RestIntegTestTask
can discover only junit5 test cases now.
What solution would you like?
- P1. Eliminate junit5 in IT.
- P2. Rework IT to inherit
OpenSearchIntegTestCase
. - P3. Identify and fix other issues with test discovery.
What alternatives have you considered?
Add a dev doc and make all tests compatible with junit4 and junit5 both.
Do you have any additional context?
Note: we can't upgrade to junit5, as reta said on slack:
OpenSearch test scaffolding is build on top of Apache Lucene and randomizedtesting , which both are using JUnit 4, see please randomizedtesting/randomizedtesting#256