我想通过在每个测试开始时输出到 STDOUT 来跟踪我的 Grails Spock 集成测试的进度。因此,当测试运行时,服务和控制器的日志数据输出以及显示测试开始的输出是混合的。
例子:
开始测试 1
2012-02-09 13:01:41,375 [main] DEBUG - Adding included service vertex 2 to DAG
2012-02-09 13:01:41,377 [main] DEBUG - Adding this service vertex 4f34262584ae3fec6cc2d0f0 to DAG
开始测试 2
2012-02-09 13:01:41,377 [main] DEBUG - Connecting included service vertex 4f34262584ae3fec6cc2d0f0 to 2
2012-02-09 13:01:41,379 [main] DEBUG - Added all the edges to the DAG for this service 4f34262584ae3fec6cc2d0f0
开始测试 3
...