countTestClasses

abstract fun countTestClasses(moduleName: String? = null, sourceSetName: String? = null, predicate: (KoClassDeclaration) -> Boolean): Int

Returns the number of test classes matching the predicate.

Return

The number of 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.