KoTestClassProvider

An interface representing a Kotlin declaration that provides information about a test classes.

Inheritors

Functions

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

Returns the number of test classes matching the predicate.

Link copied to clipboard
abstract fun hasTestClass(moduleName: String? = null, sourceSetName: String? = null, predicate: (KoClassDeclaration) -> Boolean): Boolean

Determines whatever declaration has a test class that satisfies the provided predicate.

Link copied to clipboard
abstract fun hasTestClasses(testPropertyName: String = "sut", moduleName: String? = null, sourceSetName: String? = null): Boolean

Determines whatever declaration has a Test class.

Link copied to clipboard
abstract fun numTestClasses(testPropertyName: String = "sut", moduleName: String? = null, sourceSetName: String? = null): Int

Returns the number of test classes.

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

The test classes.

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

The test classes matching the predicate.