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.
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