If you're deploying Apex code to Production, unit tests for that code must also be developed and deployed. During deployment of any Apex code, Salesforce automatically runs all unit tests in Production, and all of the following conditions must be met, or your deployment will fail:
All unit tests must run to completion without uncaught failures.
The tests must touch at least 75% of all Apex code.
The tests must touch all triggers
These rules don't apply to code in managed packages.
See the Apex Language Reference (http://www.salesforce.com/us/developer/docs/apexcode/salesforce_apex_language_reference.pdf), specifically the chapter on Testing Apex, for details.
If you're deploying Apex code to Production, unit tests for that code must also be developed and deployed. During deployment of any Apex code, Salesforce automatically runs all unit tests in Production, and all of the following conditions must be met, or your deployment will fail:
All unit tests must run to completion without uncaught failures.
The tests must touch at least 75% of all Apex code.
The tests must touch all triggers
These rules don't apply to code in managed packages.
See the Apex Language Reference (http://www.salesforce.com/us/developer/docs/apexcode/salesforce_apex_language_reference.pdf), specifically the chapter on Testing Apex, for details.
-
All unit tests must run to completion without uncaught failures.
-
The tests must touch at least 75% of all Apex code.
-
The tests must touch all triggers
These rules don't apply to code in managed packages.See the Apex Language Reference (http://www.salesforce.com/us/developer/docs/apexcode/salesforce_apex_language_reference.pdf), specifically the chapter on Testing Apex, for details.
All Answers
-
All unit tests must run to completion without uncaught failures.
-
The tests must touch at least 75% of all Apex code.
-
The tests must touch all triggers
These rules don't apply to code in managed packages.See the Apex Language Reference (http://www.salesforce.com/us/developer/docs/apexcode/salesforce_apex_language_reference.pdf), specifically the chapter on Testing Apex, for details.