Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Apex TestingNew to Visual Studio Code? Get it now.
Apex Testing

Apex Testing

Salesforce

salesforce.com
|
222,901 installs
| (0) | Free
Provides Apex test execution and management features
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Salesforce Apex Testing Extension

This extension provides Apex test execution and management features for VS Code.

DO NOT INSTALL THIS EXTENSION DIRECTLY. Install the complete Salesforce Extension Pack instead.

Features

  • Run Apex tests (all tests, local tests, specific classes, methods, or test suites)
  • Test view sidebar for browsing and running tests
  • Test result visualization
  • Integration with Apex Language Server for test discovery
  • Support for Tooling API test discovery

Commands

  • sf.apex.test.run - Run Apex Tests
  • sf.apex.test.class.run - Run Apex Test Class
  • sf.apex.test.method.run - Run Apex Test Method
  • sf.apex.test.last.class.run - Re-Run Last Run Apex Test Class
  • sf.apex.test.last.method.run - Re-Run Last Run Apex Test Method
  • sf.apex.test.suite.run - Run Apex Test Suite
  • sf.apex.test.suite.create - Create Apex Test Suite
  • sf.apex.test.suite.add - Add Tests to Apex Test Suite
  • sf.apex.testing.walkthrough.open - Open Apex Test Explorer Walkthrough (Getting Started)

Requirements

  • This extension requires the salesforcedx-vscode-services extension. Install the Salesforce Extension Pack for the full experience.

Extension Settings

  • salesforcedx-vscode-apex-testing.test-run-concise: Display only failed test results
  • salesforcedx-vscode-apex-testing.outputFormat: Output format (markdown | text)
  • salesforcedx-vscode-apex-testing.testSortOrder: Sort order (runtime | coverage | severity)
  • salesforcedx-vscode-apex-testing.testPerformanceThresholdMs: Performance threshold
  • salesforcedx-vscode-apex-testing.testCoverageThresholdPercent: Coverage threshold
  • salesforcedx-vscode-apex-testing.retrieve-test-code-coverage: Retrieve code coverage
  • salesforcedx-vscode-apex-testing.disable-warnings-for-missing-coverage: Disable coverage warnings

User guide

  • Walkthrough: Command Palette → SFDX: Open Apex Test Explorer Walkthrough (Getting Started when a Salesforce project is open)
  • Apex Test Explorer walkthrough (markdown) — same topics as the in-product walkthrough
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft