bneumann / CppUTest-Test-Adapter

A test adapter for Visual Studio Code for the C/C++ Unit Test framework CppUTest.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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.

About

A test adapter for Visual Studio Code for the C/C++ Unit Test framework CppUTest.

License:MIT License


Languages

Language:TypeScript 96.3%Language:C++ 2.2%Language:CMake 1.5%