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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.