testClasses

abstract fun testClasses(testPropertyName: String = "sut", moduleName: String? = null, sourceSetName: String? = null): List<KoClassDeclaration>

The test classes.

Return

a list of KoClassDeclaration which are 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).


abstract fun testClasses(moduleName: String? = null, sourceSetName: String? = null, predicate: (KoClassDeclaration) -> Boolean): List<KoClassDeclaration>

The test classes matching the predicate.

Return

a list of KoClassDeclaration which are test classes.

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.