Gradle: How to Display Test Results in the Console in Real Time?

后端 未结 16 1051
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 00:39

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:

gradle test
         


        
16条回答
  •  隐瞒了意图╮
    2020-11-28 01:19

    For those using Kotlin DSL, you can do:

    tasks {
      named("test") {
        testLogging.showStandardStreams = true
      }
    }
    

提交回复
热议问题