Source: dzone.com

Unit Testing with Apex

Category: github

This is the eleventh article documenting what I’ve learned from a series of 13 Trailhead Live video sessions on Modern App Development on Salesforce and Heroku.

For some (and I’ve been guilty of this in the past), unit tests in Salesforce is that annoying gatekeeper that stops me from deploying my custom APEX code until I’ve satisfied the 75% code coverage requirement.

The first step of creating the unit test is to create a testDataFactory class to help generate the test data for the unit test.

That way, you can get the full value of the experience and also pose questions and start discussions with the group.

Related Articles