I read an answer about Maven but I was wondering how I would achieve this task in Gradle - Executing JUnit 4 and JUnit 5 tests in a same build.
Currently my Gradle build only picks up tests with:
import org.junit.jupiter.api.Test;
My problem is that I'm using @RunWith
which needs JUnit4 to run but I want to execute it on a JUnit5 Vintage Engine.
How do I make my build such that I can run JUnit4 and JUnit5 together. Thanks.
Update:
Now there is a native Mockito Junit Jupiter
for JUnit 5 - https://mvnrepository.com/artifact/org.mockito/mockito-junit-jupiter