Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Test View

CTest Lab provides ways for you to interact with your tests in the Test View.

Disabled Tests

CTest Lab appends “(Disabled)” to the test name in the Testing view if the a test’s DISABLED test property is set to true. This provides you a clear indication that a test will not run.

Skipped Tests

CTest sometimes skips a test, usually when a required resource is unavailable. When CTest skips a test, it sets the pass/fail status to failed and notes that the test was “Not Run”. CTest Lab also counts skipped tests as failed in the Test View to be consistent with CTest’s behavior.

Test Fixtures

If you run an individual test, CTest Lab will run fixtures configured in your CMake files. This occurs because CTest Lab effectively runs ctest --tests-regex .... However, CTest Lab cannot update the pass/fail status of the fixtures in the Test View. This is due to how VS Code’s testing API works and I have not figured out a work-around, yet.