Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CMake Test ExplorerNew to Visual Studio Code? Get it now.
CMake Test Explorer

CMake Test Explorer

Derivitec Ltd

|
11,235 installs
| (1) | Free
Run your CMake tests in the Sidebar of Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CMake Test Explorer for Visual Studio Code

Run your CMake tests using the Test Explorer UI.

Features

  • Shows a Test Explorer in the Test view in VS Code's sidebar with all detected tests and suites and their state
  • Shows a failed test's log when the test is selected in the explorer
  • Forwards the console output from the test executable to a VS Code output channel

Getting started

  • Install the extension
  • Open the Test view
  • Run your tests using the Run icon in the Test Explorer

Configuration

Property Description
cmakeExplorer.buildDir Location of the CMake build directory. Can be absolute or relative to the workspace. Defaults to empty, i.e. the workspace directory.
cmakeExplorer.buildConfig Name of the CMake build configuration. Can be set to any standard or custom configuration name (e.g. Default, Release, RelWithDebInfo, MinSizeRel ). Case-insensitive. Defaults to empty, i.e. no specific configuration.
cmakeExplorer.cmakeIntegration Integrate with the CMake extension (ms-vscode.cmake-tools) to provide contextual variables such as ${buildType} for use in other settings listed here.
cmakeExplorer.extraCtestLoadArgs Extra command-line arguments passed to CTest at load time. For example, -R foo will only load the tests containing the string foo. Defaults to empty.
cmakeExplorer.extraCtestRunArgs Extra command-line arguments passed to CTest at run time. For example, -V will enable verbose output from tests. Defaults to empty.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft