How can I generate emailable-report.html of TestNG?


If I run tests directly via TestNG, it will generate single emailable-report.html.
But if I run tests via Gradle (“gradle test”), no emailable-report.html generated.
Can you please teach me how can I get emailable-report.html by “gradle test”?
Thank you.

The HTML report generated by the test task usually consists of multiple files. What’s the main purpose of having a single HTML file? To email it for reporting? If that’s the case, I’d recommend setting up a Continuous Integration server that let’s you render the report in a web UI for each build.

Yes, just for emailing or attaching as document for reference.
CI is a good idea, thank you.

Regardless of the merits of TestNG’s email report scheme, some legacy frameworks want it. See tips at