createRandomDirectory

Creates a random directory, which is automatically deleted at the end of the test.

Example

val buildDirectory by createRandomDirectory()

test("A test") {
buildDirectory() // do something with it
}