To Do Checklist Before Code Commit In Production

To Do Checklist Before Code Commit In Production

TO DO CHECKLIST BEFORE CODE COMMIT IN PRODUCTION

  1. Proper commenting in code (Test Class, Apex Class, Trigger, Vf page), if you modified or create new component
  2. Comparison of code with production, if multiple user are working on same functionality then deployment should not hamper other functionality in production
  3. We can use version tool like Git/Bitbucket
  4. Test Class coverage above 75%. If below this, we should have justification about this.
    • Common class for creating object instance.
    • Bulkification.
    • See all data = false
    • Assert Statement.
    • Run with specific user.
  5. Code Optimization
    • Null Checks.
    • Bulkification.
    • Save point, if required.
    • Indentation.
    • Try, Catch on DML Operation.
    • Remove all the unnecessary system.debug statements and commenting code.
    • Should not contain hardcode values.
    • Following Image stated the follow of Development to End to End delivery of code.

 

Capture

Popular Salesforce Blogs