Logging when using GradleRunner


(David Byron) #1

I’m running tests with spock using GradleRunner, based on this.

It’d be helpful to be able to log messages in my test code to the same place GradleRunner ends up logging. With this it’s easier to group log messages with their corresponding gradle execution. Do you have any examples of this? If this isn’t currently supported, I’m curious what’d be involved to implement it.

Thanks.

-DB


(Sterling Greene) #2

Take a look at: forwardOutput()