Share a TestNG report
TestNG's default listeners write test-output/ — index.html, the
suite pages, emailable-report.html, and the CSS and JS that make the
first one readable. It's a decent report and it lives for exactly as
long as the workspace does.
The two usual escapes are worse than the problem: emailing
emailable-report.html (see
why that goes wrong), or pasting the console
summary into a channel.
Publish the folder
mvn -B test # or: gradle test
# → test-output/index.html, test-output/emailable-report.html, …
Drag test-output/ (or a zip of it) into
the app:
index.htmlbecomes the report body.- The stylesheets, scripts and suite pages upload alongside and their relative references are rewritten — which is why the copied-out file renders unstyled and the published one doesn't. Background in why the report lost its CSS.
- Scripts run in a sandboxed iframe (
allow-scripts, noallow-same-origin), so the collapsible groups still work.