kotest-assertions / io.kotest.properties / PropertyContext

PropertyContext

class PropertyContext
Deprecated: Deprecated and will be removed in 5.0. Migrate to the new property test classes in 4.0

A PropertyContext is used when executing a propery test. It allows feedback and tracking of the state of the property test.

Constructors

<init>

A PropertyContext is used when executing a propery test. It allows feedback and tracking of the state of the property test.

PropertyContext()

Functions

addValue

fun addValue(any: Any?): Boolean

attempts

fun attempts(): Int

classificationCounts

fun classificationCounts(): Map<String, Int>

classify

fun classify(condition: Boolean, trueLabel: String): Unit
fun classify(condition: Boolean, trueLabel: String, falseLabel: String): Unit

values

fun values(): List<Any?>