Test execution report in gradle

If you are using TestNG as a testing framework in Gradle, then you can below code in Build.gradle to generate report.
 
test {
    useTestNG() {
    useDefaultListeners = true
    }
    reports.html.enabled = false
    }
If you are using JUnit as a testing framework, you can use below code to generate HTML report in Gradle.

test {
    reports {
    junitXml.enabled = false
    html.enabled = true
    }
    }
    

Web development and Automation testing

solutions delivered!!