Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CppUnitTestFramework Explorer for Visual Studio CodeNew to Visual Studio Code? Get it now.
CppUnitTestFramework Explorer for Visual Studio Code

CppUnitTestFramework Explorer for Visual Studio Code

drleq

|
4,580 installs
| (0) | Free
Run your CppUTF 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

CppUnitTestFramework Test Adapter

This extension is a Visual Studio Code Test Adapter for the Test Explorer UI extension. It integrates with the CppUnitTestFramework unit testing library.

Configuration

Each workspace must be configured in order for the extension to work correctly. The following settings are available:

Property Description
cppUnitTestFramework.executable Required: The path to the compiled unit test executable. Can be absolute or relative to the workspace.
cppUnitTestFramework.workingDirectory Optional: The working directory to use when running the unit test executable. Can be absolute or relative to the workspace. Defaults to the executable directory.
cppUnitTestFramework.environment Optional: A map of additional environment variables to apply when running the unit test executable.
cppUnitTestFramework.debugLogging Optional: Enabled debug logging for the extension. Defaults to false.
cppUnitTestFramework.buildDirectory Optional: The build directory to use when resolving source file references, such as ./build when using CMake.

Debugging

Debugging is handled through the ms-vscode.cpptools extension. The debugger launch type is configured automatically based on your platform.

Platform Requirements
Windows Visual Studio 2017/2019/2022
Linux gdb
OSX lldb

Due to limitations with the debugger API it is not possible to update the test results when debugging.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft