To Do Checklist Before Code Commit In Production
TO DO CHECKLIST BEFORE CODE COMMIT IN PRODUCTION
- Proper commenting in code (Test Class, Apex Class, Trigger, Vf page), if you modified or create new component
- Comparison of code with production, if multiple user are working on same functionality then deployment should not hamper other functionality in production
- We can use version tool like Git/Bitbucket
- 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.
- 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.