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.
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.
Copyright © 2021 Jogjafile Inc.
If you are using
gradle testcommand to run your tests you can include--infoand--debugswitches in your command to run test.Use something like this to run your tests
gradle --info testThat should log all the info statements on console.