Gradle junit works: how to select tests from jar file

We can run j unit batchtest with tests selected from the jar file.

<zipfileset src="tests-only.jar" includes="**/*Test.class"/>

Performs all relevant tests selected from test-only.jar

How to do similar with gradle. testClassesDir accepts only the actual directory.

+3
source share
2 answers

Gradle , Jar. ( http://forums.gradle.org.) , Jar ( ), testClassesDir . , classpath ( , Jar).

+1

. 23.12.2 Gradle. ,

+1

Source: https://habr.com/ru/post/1524347/


All Articles