How to make Gradle build produce HTML test report instead of XML default?

后端 未结 1 1234
执笔经年
执笔经年 2020-12-14 15:14

Currently I build my Gradle app by running gradle clean build. This exercises JUnit tests and produces XML test results in my project under build/test-res

相关标签:
1条回答
  • 2020-12-14 15:34
    test {
        reports {
            junitXml.enabled = false
            html.enabled = true
        }               
    }
    

    To figure this out on your own, start from Test in the Gradle Build Language Reference, then drill down into (the type for) reports.

    0 讨论(0)
提交回复
热议问题