Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CppUTest Test AdapterNew to Visual Studio Code? Get it now.
CppUTest Test Adapter

CppUTest Test Adapter

bneumann

|
5,808 installs
| (3) | Free
Run your CppUTest 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

CppUTest Test Adapter for Visual Studio Code

Tests

This is the implementation for a CppUTest Test Adapter for VSCode. Check it out on the VSCode Market Place: CppUTest Adapter

tests

Setup

To let this plugin know where your tests are set the cpputestTestAdapter.testExecutable to the executable of your tests. They are separated by semicolon and support wildcards, so you can add as many executables as you want:

{
  "cpputestTestAdapter.testExecutable": "${workspaceFolder}/test/testrunner;${workspaceFolder}/test/subFolder/ut_*",
  "cpputestTestAdapter.testExecutablePath": "${workspaceFolder}/test"
}

They will be executed in the cpputestTestAdapter.testExecutablePath path.

To arrange for a task to be run prior to running tests or refreshing the test list, set cpputestTestAdapter.preLaunchTask to the name of a task from tasks.json. This can be used to rebuild the test executable, for example.

If you want to use the debugging functions you will also need to setup a launch.json file with your debugger path and arguments etc. The adapter will take care of the rest. Hopefully.

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