Executing JUnit 4 and JUnit 5 tests in a same build
In Maven projects, I have some existing tests relying on JUnit 4. I cannot migrate these tests in JUnit 5 for multiple reasons. Essentially, some tests depend on a library which uses JUnit 4 runner and code migration may take time. I would like all the same create new test classes with JUnit 5 that is now released and provides new interesting features. How to do that ? JUnit 5 provides a way out of the box . JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage Each one is a distinct project and using all of them allows to compile and execute JUnit 4 and JUnit 5 tests in a same project.