closeWith
infix fun closeWith(action: suspend Value.(testsSucceeded: Boolean) -> Unit): TestFixture<Value>(source)
Registers action to be called when this fixture's lifetime ends.
action is provided with a testsSucceeded parameter. It is true if the closing test (of a test-level fixture) or all tests of the closing suite (for a suite-level fixture) were successful. Example use case: A fixture representing a file or directory, which usually gets cleared, but should be kept for inspection in case of failures.