function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pChan1412pChan1412 

Difference between synchronous and asynchronous test execution?

Hi,

 

I know this is pretty basic but I am really confused. What exactly is the difference between synchronous and asynchronous test executions? Do test classes run in parallel in both? Why is that the test executions are asynchronous when run from UI but synchronous when deploying to production?

 

Thanks,

Puneeth.

 

Aruna@developerforceAruna@developerforce
While making Run all test call, the job is queued for test run calculations, but for deployment to production, as its synchronous and "run all test" is always "true" in background, so, test classes must have to run to validate if components going in production are valid or not. This is one of the major the control check salesforce have imposed to make sure all the production instances have valid code on cloud.