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
ValnavjoValnavjo 

In which way the tests run in Production when you deploy a Change Set?

Hi,

 

What I'm trying to say is, Synchronously or Asynchronously? Does the "Disable Parallel Apex Testing" from "Apex Test Execution" screen affect to this process?


Many thanks,

JVN

Best Answer chosen by Admin (Salesforce Developers) 
Rahul_sgRahul_sg
The test methods should run synchronously on the prod instance.

Tests that are run as part of a deployment, a
package install, or a package upload still run synchronously

refer to https://na1.salesforce.com/help/doc/en/salesforce_spring13_release_notes.pdf :).

Reason could be to make sure tehe overall coverage is >75%. If an Apex class is too big and you created 2 diff test classes to cover the class then in order to find out exact coverage of that apex class both test class should run in sync ryt?

All Answers

Rahul_sgRahul_sg
It runs Synchronously in prod :)
ValnavjoValnavjo

Hello Rahul,

Thank you very much for your answer.

Could you please explain a little bit why? I've recieved an answer saying that the test run Asynchronously:

 

https://success.salesforce.com/questionDetail?qid=a1X30000000fDDcEAM


Regards,

JVN

Rahul_sgRahul_sg
The test methods should run synchronously on the prod instance.

Tests that are run as part of a deployment, a
package install, or a package upload still run synchronously

refer to https://na1.salesforce.com/help/doc/en/salesforce_spring13_release_notes.pdf :).

Reason could be to make sure tehe overall coverage is >75%. If an Apex class is too big and you created 2 diff test classes to cover the class then in order to find out exact coverage of that apex class both test class should run in sync ryt?
This was selected as the best answer