is Use Default Listeners
Whether the default listeners and reporters should be used. Since Gradle 1.4 it defaults to 'false' so that Gradle can own the reports generation and provide various improvements. This option might be useful for advanced TestNG users who prefer the reports generated by the TestNG library. If you cannot live without some specific TestNG reporter please use listeners property. If you really want to use all default TestNG reporters (e.g. generate the old reports):
plugins {
id 'java'
}
test {
useTestNG() {
// report generation delegated to TestNG library:
useDefaultListeners = true
}
// turn off Gradle's HTML report to avoid replacing the
// reports generated by TestNG library:
reports.html.required = false
}
Content copied to clipboard