api / org.gradle.testkit.runner / BuildResult / getOutput

getOutput

abstract fun getOutput(): String

The textual output produced during the build.

This is equivalent to the console output produced when running a build from the command line. It contains both the standard output, and standard error output, of the build.

Return
the build output, or an empty string if there was no build output (e.g. ran with -q)

Since
2.9