The ability to write test code is a valuable skill for any developer who customizes the Salesforce platform for their organization. In this course, join instructor Duard Lynn Davis as he shows why test classes are needed, how to write them for supportability, and how to achieve maximum code coverage. Learn how to create a basic test class, implement test code using test factory methods, and address common concerns with test classes, including how to use asserts to validate that your code is performing as expected. Plus, explore more advanced testing topics, such as how to test each aspect of batch Apex code.
The value of writing proper test code
Setting up and customizing a test factory
Using the test factory to create test code
Best practices for writing test code
Adding system asserts into test code
Advantages of custom metadata
Writing test classes for batch Apex and @future
Skill Level Beginner
Show MoreShow Less
You started this assessment previously and didn’t complete it. You can pick up where you left off, or start over.