Apex Test Results View

The Force.com IDE’s Apex Test Results view displays the results of your test runs. This view is useful for troubleshooting code, tuning performance, and checking resource usage.

All Apex test execution occurs on the server. Before testing your code, save any changes to the server.

Note

To execute Apex unit tests, select Run | Run Configurations | Apex Test. To create a test run configuration, then select New launch configuration (New launch configuration icon). To execute the selected test run configuration, click Run.

Run Configurations window

To set log levels for your Apex test runs, use run configurations. Logging settings in your project properties apply only when you’re deploying code.

Note

After the a test run, the Apex Test Runner view displays results. The left pane displays test results for each class and method in the test run. The right pane displays code coverage, the stack trace, system debug logs, and user debug logs. Make sure that your code has better coverage than the code in this sample org!

Apex Test Results view