Activity Forums Salesforce® Discussions What is minimum test coverage required for a trigger to deploy in Salesforce?

  • Suraj

    Member
    April 20, 2017 at 1:46 pm

    Hi Manpreet,

    Minimum 75% of total classes and triggers coverage is Required to deploy package in production,it does not matter trigger is included or not.

    Overall coverage > 75%

  • Praveen Kenny

    Member
    October 5, 2017 at 4:35 pm

    minimum test coverage required for a trigger IS 75% but in the company level 90% above....////

  • Praveen

    Member
    October 10, 2017 at 1:26 pm

    Even if you have enough code coverage across the whole code, for triggers you need a minimum of 1%. Recommended is to have 75%

  • SFDC

    Member
    October 11, 2017 at 3:18 am

    You need minimum 1 % for trigger and overall 75%, but in organisational level mostly you have to maintain 90%

  • Satya

    Member
    January 9, 2018 at 9:05 am

    Hi Manpreet,
    For trigger deploymet we need atleast 1% code coverage and Overall coverage > 75%

    Example:-
    1. If trigger code coverage = 0% and Overall coverage >= 75% Result deplyment failed (Code Coverage Error)
    2. If trigger code coverage > 1% and Overall coverage < 75% Result deplyment failed (Code Coverage Error)
    3. If trigger code coverage > 1% and Overall coverage >= 75% Result deplyment Success

    • This reply was modified 6 years, 10 months ago by  Satya.

Log In to reply.

Popular Salesforce Blogs