How do I send a public report link to Slack after each CI run?
No, you do not need to write custom API code for this. You can enable public sharing and configure your Slack notification rule to include the public link.
Context
Section titled “Context”Public report sharing is available on Professional and Enterprise plans. It must be enabled in both Company Settings and Project Settings.
Answer
Section titled “Answer”-
Enable Public Report Sharing:
- Go to Company Settings, then Sharing, and Enable Public Report.
- Go to Project Settings, then Sharing.
-
Send the link to Slack automatically:
- Set up Slack Notifications for your project.
- In your notification rule, select Publish a report and use public link in report notification.
- Save the rule.
Every reported run will now publish a public report and include the link in the Slack message.
Publishing from CI instead
Section titled “Publishing from CI instead”If you’d prefer to publish directly from the run command, set TESTOMATIO_PUBLISH when reporting. The reporter will publish the run and return a public URL:
TESTOMATIO_PUBLISH=1 TESTOMATIO={API_KEY} <your test run command>