Tuesday, June 27, 2017

Salesforce Basics - Unit Tests

Apex provides built-in support for unit test creation and execution, including test results that indicate how much code is covered. Before you can add Apex classes and database triggers in your production org, you must create unit tests that programmatically validate at least 75% of the code in your organization. This tutorial gets you started with unit testing.
Why test your code with unit tests? Testing helps verify that your code executes as you expect it to, and that it doesn’t consume unnecessary or extraordinary amounts of system resource. As a side-effect, it also helps ensure the integrity of Force.com releases.
Unit test methods take no arguments and commit no data to the database.

No comments:

Post a Comment

Lightning Inter-Component Communication Patterns

Lightning Inter-Component Communication Patterns If you’re comfortable with how a Lightning Component works and want to build producti...