Default Apex Class Configuration
Configure Default Apex Test Class for your Salesforce Org
To configure the default Apex Test Class for your Salesforce org, follow the below steps:
Log in to your ARM account.
Hover your mouse over the
Admin
tab and click on the option:SF Org Mgmt
.

Select your
Salesforce Org
from the list and go to theSalesforce Org - Default Apex Test Class Configuration
section. While deploying through ARM, this works in sync with the Run Test based on the Changes Test level option. If ARM cannot find dependent test classes, these default classes will run as Specified Tests.


Delete: You can delete the Apex Test Class from the Default Apex Test Class Configuration.
Edit: You can add or delete Apex Class/Trigger for the Apex Test Class.
Checkbox: This for selecting the Apex Test Class as part of the Default Apex Test Class, and you can click on save.
Clear: This will clear your Default Apex Test Class Configuration for your Salesforce Org.
Different options to choose from:
a. Fetch Current Set:
This option fetches Apex and Test classes dependency. From the list fetched, select the required Apex Test Class that you would like to configure and run into the Destination Org

b. Auto-populate:
This option will run all local tests and get the complete dependency map


Troubleshooting: If it takes longer to fetch the test classes using Auto-Populate, refresh the status by clicking theicon.
c. Add Manually:
Manually configure your default Apex Test class.
On the next auto-populated screen, enter the
Apex Test Class
name andApex Class/Trigger
name in the respective fields. Mark the Apex class as default, and select theDefault
checkbox for such a test class.Click the
Add
button at the top right corner to add another Apex Class name, or click theClone
icon to copy the details of the previous Apex Class.

Click
OK
. You can find the manually added Apex class on the previous screen, i.e., theSalesforce Org Management
page.
Manage Apex Class
Once you have added an Apex test class or classes, you can perform various actions:
Click the
edit
icon next to the class name to modify its contents in a simple editor.Click the
delete
icon to delete the class from your organization. You can select individual test classes or all the apex test classes in one go.

Last updated
Was this helpful?