Skip to content

newdigate/vscode-boost-test-adapter

 
 

Repository files navigation

Boost.Test Adapter

This extension allows you to run your Boost.Test tests using the Test Explorer UI.

debugger

This extension is based on code from these extensions:

Features

  • Tests will appear in the Test Explorer UI
  • run or debug tests
    • from Test Explorer UI
    • from inside test source code
  • 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.
  • 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

Configurations

    "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"
        }
    ]

Features not implemented yet

  • When debugging a test, the red/green status of the test is not updated in the test explorer

About

Run your Boost.Test tests in the Sidebar of Visual Studio Code

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • TypeScript 100.0%