kotest-assertions / io.kotest.assertions / Failures / shouldRemoveKotestElementsFromStacktrace

shouldRemoveKotestElementsFromStacktrace

var shouldRemoveKotestElementsFromStacktrace: Boolean

Whether Kotest-related frames will be removed from the stack traces of thrown AssertionErrors.

This defaults to true. You can change it by setting the system property kotest.failures.stacktrace.clean or at runtime, by reassigning this var.

E.g.:

    -Dkotest.failures.stacktrace.clean=false

or

    Failures.shouldRemoveKotestElementsFromStacktrace = false