Nov 4, 2021, 10:00 – 11:30 PM (UTC)
Salesforce Developer Group, Tampa, United States
Learn how to leverage a Data Layer pattern that will allow you to improve your Apex tests performance with mock data relationships.
Apex tests are essential to the overall health of your Salesforce org. The Apex testing framework enables you to write and execute tests for your Apex classes and triggers on the Lightning Platform. Apex unit tests ensure high quality for your Apex code and let you meet the requirements for deploying Apex.
It's very common to have a Test Factory for your Apex tests, creating several records, which is absolutely needed especially when testing bulk processing operations.
However, besides bulk testing, you may want to test a singular method from a Helper class or run your tests with fake data. Here, instead of inserting real records in your Salesforce org, you can use the Data Layer pattern, and implement an interface that will allow you to run tests with mock data, which makes your tests run a lot faster.
Join us to learn how to leverage this pattern to improve your Apex tests.
Salesforce
Lead Salesforce Engineer
Accounting Seed
Director of Engineering
CONTACT US