Gradle:如何在控制台中实时显示测试结果? - Gradle: How to Display Test Results in the Console in Real Time?

问题:

I would like to see test results ( system.out/err, log messages from components being tested ) as they run in the same console I run:我想查看测试结果(system.out/err,来自正在测试的组件的日志消息),因为它们在我运行的同一个控制台中运行:

gradle test

And not wait until tests are done to look at the test reports ( that are only generated when tests are completed, so I can't "tail -f" anything while tests are running )并且不要等到测试完成再查看测试报告(只有在测试完成时才会生成,所以在测试运行时我不能“tail -f”任何东西)


解决方案:

参考一: https://en.stackoom.com/question/Gd8m
参考二: https://stackoom.com/question/Gd8m
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章