Test Apex - Chirag-ahir/SFC-Preparation GitHub Wiki

Apex testing is the process of writing and running unit tests to verify that custom Apex code works correctly. It involves creating test methods that check the functionality and ensure the code meets requirements, while achieving at least 75% code coverage before deployment.

Salesforce Apex Testing Blog: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing.htm

@TestVisible annotation useful When you annotate private or protected members with this annotation, they can be accessed by test methods in code running in test context.

@isTest annotation used when you want to mark any method as test method.

Regression Testing

Regression testing is a type of software testing used to confirm that a recent configuration update or deployment does not affect existing functionality, processes, and workflows of a system.