can anyone tell me the way to do ``` test { ...
# gradle
x
can anyone tell me the way to do
Copy code
test {
    reports {
        junitXml.enabled = false
        html.enabled = true
    }
}
in kotlin dsl
l
The
tasks { }
block allows you to access all Gradle tasks defined in the project. The method
withType
receives the Task class you want to modify and tells you to pass a lambda function with access of it's attributes.
Copy code
tasks {
    withType<Test> {
        reports {
            junitXml.isEnabled = false
            html.isEnabled = true
        }
    }
}
x
thanks