Activity Forums Salesforce® Discussions What is Salesforce Apex test coverage? What’s the minimum test coverage required to deploy?

  • shariq

    Member
    September 22, 2018 at 4:27 pm

    To ensure that your code meets certain standards, Apex Code coverage shows you how many executable lines of code in your classes and triggers have been exercised by test methods. Code coverage percentage is a calculation of the number of covered lines divided by the sum of the number of covered lines and uncovered lines. The minimum test coverage required to deploy to production is 75%

  • Parul

    Member
    September 22, 2018 at 5:06 pm

    As it turns out, 75% code coverage is required on an individual Apex class and an average of 75% of code coverage is required across the organization. This includes classes and triggers. But, you can deploy a Trigger with less than 75% coverage, for some unforgivable reason.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Salesforce Admin Certification 2020 Questions Explained with References - Part II

Video in

How to prepare and pass Salesforce Admin Certification with Practice Exam Questions 2020 practice questions and answers for the Salesforce Administration Salesforce Certified Admin Exam Questions Salesforce Administrator Certification Exam…