api / org.gradle.testkit.runner / GradleRunner / getProjectDir

getProjectDir

abstract fun getProjectDir(): File

The directory that the build will be executed in.

This is analogous to the current directory when executing Gradle from the command line.

Return
the directory to execute the build in