For the complete documentation index, see llms.txt. This page is also available as Markdown.

Apex tests

Run Apex tests from your workspace against your development org — group them into suites, validate coverage, and keep a local history of every run.

The Testing group under Dev runs your project's Apex tests against an org and keeps the results with your workspace. Test classes are discovered from your source — every class on your current branch marked @isTest — so the list reflects the branch you are working on, not what happens to be deployed.

Running tests

Dev > Testing > Run Apex Tests lists the test classes in your project with their package and domain. Once a class has been run, its row carries the latest result for your target org: pass or fail, when it ran, and the run's coverage.

The Run Apex Tests page listing test classes with package and domain, two classes showing a Passed status with coverage from the latest run
Run Apex Tests — the project's test classes, with the latest result and coverage per class.

Select classes and click Run Tests. The dialog confirms where and how the run executes:

The Run Apex Tests dialog with the target org selected, three selected tests, and coverage validation enabled with a 75% threshold
The run dialog — target org, the selected tests, and optional coverage validation.
  • Target Organization — your target org is preselected; pick any other connected org. The dialog checks the connection live and enables Run Tests only when it passes.

  • Coverage Validation — when enabled, the run fails if coverage lands below the Threshold (default 75%).

Beyond selected classes, the dialog can scope a run to a test suite, a domain, or a package — a package run executes all tests in that package. Runs execute in the background, one at a time per org, and the outcome arrives as a notification; the report opens from the result.

A test class must exist in the org to run there. If you wrote a new test class and have not deployed it yet, use Push on this page to deploy the selected classes to the org first.

Each executed class's row expands with actions to view the run's report and to re-run that class.

Test suites

Dev > Testing > Test Suites groups tests you run together — a smoke set for a package, everything in a domain, or a hand-picked list of classes. Suites are stored in your repository, so they are versioned and shared with the team like any other configuration.

The Test Suites page with a suite card showing its type, contents, and a Run action
Test Suites — each suite as a card with its selection type and a Run action.

Create Suite walks three steps — name, selection criteria, review. The criteria combine freely: packages, domains, specific test classes, and optional tags. The review step shows the resulting configuration as YAML before it is written.

The Create Test Suite wizard on its review step with the YAML configuration preview and a Ready to Create confirmation
Create Test Suite — the review step previews the configuration the suite is saved as.

Run on a suite card opens the same run dialog with the suite preselected. Edit reopens the wizard to change the criteria — deleting a suite is done from the edit dialog.

Local test results

Dev > Testing > Local Test Results is the history of the runs you have executed from this workspace: one row per run with its status, classes, run type, org, and time.

The Local Test Results page listing a passed run with its classes, run type, org, and time
Local Test Results — every run from this workspace, on this branch, against your target org.

The list is scoped to your current branch and your current target org — switching either changes which runs you see. Clicking a run opens its report: the summary, each test method's outcome and runtime, and code coverage per class.

A test run report showing the summary table, per-method outcomes with runtimes, and code coverage
The run report — summary, per-method results, and coverage.

These are your local runs. Scheduled test runs executed by the server against environments are reported under Scheduled Runs in Inspect.

Last updated

Was this helpful?