Testing Your Changes
One of the core tenets of DevOps is the ability to deliver robust changes that stand up to scrutiny, have fewer defects, and ultimately reduce the Change Failure Rate (CFR) metric. This can be largely achieved through testing our development changes.
In this chapter, we’ll explore the importance of robustly testing Salesforce changes, the different types of testing that apply to your components, and how to ensure proper testing as part of your DevOps process.
We will be covering the following main topics:
- The importance of testing
- Apex testing
- Testing your Lightning Web Components (LWCs)
- Testing your flows
By the end of this chapter, you should be well equipped to create and run tests within Salesforce that exercise much of the functionality you implement, whether programmatically or declaratively. This will in turn help you deliver better quality deployments as your DevOps process matures.