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

How to Learn Salesforce Development | Salesforce learning steps for beginners | Trailhead demo

Video in

In this video, we shared the steps to learn salesforce lightning basics, salesforce apex development, CRM in online for free from scratch very quickly. Learn salesforce…