testClasses

fun <T : KoTestClassProvider> List<T>.testClasses(testPropertyName: String = "sut", moduleName: String? = null, sourceSetName: String? = null): List<KoBaseDeclaration>

List containing test classes.

Return

A list containing all test classes.

Parameters

testPropertyName

the test property name to check. By default, "sut".

moduleName

the name of the module to check (optional).

sourceSetName

the name of the source set to check (optional).


fun <T : KoTestClassProvider> List<T>.testClasses(moduleName: String? = null, sourceSetName: String? = null, predicate: (KoClassDeclaration) -> Boolean): List<KoBaseDeclaration>

List containing test classes matching the predicate.

Return

A list containing all test classes matching the predicate.

Parameters

moduleName

the name of the module to check (optional).

sourceSetName

the name of the source set to check (optional).

predicate

A function that defines the condition to be met by a test class.