Spock test output in application log

1.3k views Asked by At

How can I get Spock test execution console output or similar to my application log apart from the consolidated HTML or XML reports?

Using Gradle 2.11 and Slf4j backed by log4j.

1

There are 1 answers

3
Raghu Kiran On

If you are using gradle test command to run your tests you can include --info and --debug switches in your command to run test.

Use something like this to run your tests gradle --info test That should log all the info statements on console.