dir

A temporary directory unique for each test, in which the Gradle files are created.

Example

Print the directory:

test("In which directory does Gradle execute?") {
println(gradle.dir())
}