Actions | Development | Tools | Run Unit Tests

Unit tests enable you to meet the Apex code coverage requirements for deploying or packaging Apex. This action will run a unit test in your Salesforce. As a part of automation, you can set up to run a test repeatedly every hour, day or month, if needed.

Apex Unit Tests benefits

  • Ensuring that Apex classes and triggers work as expected
  • Having a set of regression tests that can be rerun every time classes and triggers are updated – future updates don’t break existing functionality
  • Meeting the code coverage requirements for deploying Apex to production or distributing Apex to customers via packages
  • Making production users more productive by delivering high-quality apps
  • Increasing your customers trust by delivering high-quality apps

OrgSteward: Run Unit Tests

Get Started ↪ Request a Demo

Most common deployment mistakes

  • Test Method Failure – While deployment if any of the test method fails then deployment can not happen. There could be various reasons for test method failure such as Data Dependency, New Validation Rule added in production etc.
  • Component Missing – Sometimes we miss to add dependent components, like we add the trigger but miss to add its helper class or common utility class used in it.
  • Object or Field Missing – Sometimes we miss to add new object and fields are being created and then we try to move class or other components using those objects/fields. In this case deployment fails.