From 7d8db2fb01c451f16406cd4c910da320d43b775f Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Mon, 3 Nov 2025 15:10:57 +0000 Subject: [PATCH 1/2] Add Catch2 test adapter extension The extension discovers GTest based C++ tests in Visual Studio Code, where they can be run or debugged. The current settings only work in simple use-cases: https://github.com/matepek/vscode-catch2-test-adapter/issues/429 --- src/s-core-devcontainer/.devcontainer/devcontainer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/s-core-devcontainer/.devcontainer/devcontainer.json b/src/s-core-devcontainer/.devcontainer/devcontainer.json index 8a0e60b..febb0a7 100644 --- a/src/s-core-devcontainer/.devcontainer/devcontainer.json +++ b/src/s-core-devcontainer/.devcontainer/devcontainer.json @@ -48,6 +48,7 @@ "ms-python.python", "charliermarsh.ruff", "mads-hartmann.bash-ide-vscode", + "matepek.vscode-catch2-test-adapter", "bazelbuild.vscode-bazel", // Bazel support for Visual Studio Code; see also bazel.lsp.command below "dbaeumer.vscode-eslint", "EditorConfig.EditorConfig", @@ -80,6 +81,7 @@ "--experimental_enable_label_completions" ], "C_Cpp.intelliSenseEngine": "disabled", + "testMate.cpp.test.executables": "bazel-bin/**/*{test,Test,TEST}*", "tasks": { "version": "2.0.0", "tasks": [ From fde00d81e8b64a928213b69d136404154344347f Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Mon, 3 Nov 2025 15:33:06 +0000 Subject: [PATCH 2/2] document limitation of running tests without bazel --- src/s-core-devcontainer/.devcontainer/devcontainer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/s-core-devcontainer/.devcontainer/devcontainer.json b/src/s-core-devcontainer/.devcontainer/devcontainer.json index febb0a7..c7dbf59 100644 --- a/src/s-core-devcontainer/.devcontainer/devcontainer.json +++ b/src/s-core-devcontainer/.devcontainer/devcontainer.json @@ -81,6 +81,8 @@ "--experimental_enable_label_completions" ], "C_Cpp.intelliSenseEngine": "disabled", + // This only supports basic tests: https://github.com/matepek/vscode-catch2-test-adapter/issues/429 + // More complex tests may need execution via bazel, which is not done yet. "testMate.cpp.test.executables": "bazel-bin/**/*{test,Test,TEST}*", "tasks": { "version": "2.0.0",