Apex Test Results Summary

Updated 3 months ago by Copado Solutions

When running Apex tests, it might be handy to get a summary of test results outside of Salesforce, especially, if there are any stakeholders or managers who need to check the results directly in their inbox or easily forward them to other stakeholders for review.

With Copado, you can leverage the Apex Test Result Summary email template and receive a detailed report of the Apex test results of an org in your email.

All you need to do is use a workflow rule! Follow the steps below to set this up:

  1. Navigate to Setup and search for Workflow Rules.
  2. Click on New Rule and select Apex Test Result in the Object drop-down menu.
  3. Give your rule a name and provide a description if desired.
  4. In Evaluation Criteria choose to Evaluate the rule when a record is created.
  5. In Rule Criteria, select Run this rule if the formula evaluates to true and set the formula to 'True':

  1. Add a time-based trigger for 0 hours after the rule activation.
  2. Add an email alert using the template Apex Test Result Summary.
  3. Save and activate the rule.

Whenever an Apex test is run on the org credential, you receive the email below:


How did we do?