Debug Logs for Apex Test Results
When you run a test, the output is sent to the log. Debug logs display on the right
side of the Force.com IDE’s Apex Test Results view.
- The first part of the log details the events that occurred during the test run.
- The next few lines give details on how long it took to execute specific lines of code. This information is useful for performance tuning.
- The debug log then lists how many resources a program uses and the total amount available for each resource. The Apex runtime engine tracks the resources that every script uses so that a single script doesn’t monopolize the servers. If you write a script that goes over one of the limits, you receive an error message.
To change your logging levels, create or edit an Apex test run configuration. To
access your Apex test run
configurations, select . To create a test run configuration, then select New launch
configuration (
).