This extension allows you to run your Boost.Test tests using the Test Explorer UI.
This extension is based on code from these extensions:
- Tests will appear in the Test Explorer UI
run
ordebug
tests- from
Test Explorer UI
- from inside test source code
- from
- Output
- Diagnostic info appears in the
Boost.Test Adapter
Output channel. - Running test output appears in the
Boost.Test Adapter
Output channel. - Debugged test output appears in the corresponding Terminal panel.
- Diagnostic info appears in the
- Update 3.0.0
- Add support for deeply nested test suites (multiple levels of test suites)
- Add support for multiple test executables
- Add support for cancelling tests
"boost-test-adapter.tests": [
{
// Mandatory: Path to a test executable. May be absolute or relative path.
"testExecutable": "build/Debug/main_test_1",
// Optional: The working directory for the test executable.
"cwd": "${workspaceFolder}",
// Mandatory: The name of the launch configuration used for debugging.
// The 'program' and 'args' options will be overwritten by this extension.
"debugConfig": "Test config",
// Optional: A simple key=value file with environment variables for running and debugging the tests.
"envFile": "${workspaceFolder}/.env",
// Optional: Environment variables for running and debugging the tests.
// These env vars are merged with the ones from envFile (if present).
// These env vars take precedence over the ones from envFile.
"env": [
{
"name": "MY_VAR",
"value": "my var value"
}
],
// Optional: Used to convert relative source file paths to absolute paths.
// It's needed only if the test-case file paths are broken in the Test Explorer UI.
"sourcePrefix": "${workspaceFolder}"
},
{
"testExecutable": "build/Debug/main_test_2",
"cwd": "${workspaceFolder}",
"debugConfig": "Test config"
}
]
- When debugging a test, the red/green status of the test is not updated in the test explorer