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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章