Gradle Junit Run - Test Class from dependency jar

Hi ! We have the requirement to run the junit test case from dependent jar.
Most of old threads forum suggests to unzip the jar and setting the testClassesDir.
What could be the best practice? Is any gradle plugins are available?

A not gradle related workaround could be that you create a testSuite in your importing project adding the external tests. This way the tasks will find your project-local suite and execute it.

1 Like