Skip to content

Commit

Permalink
Add C++ unit testing (#58)
Browse files Browse the repository at this point in the history
* Add ROS Node attach and CPP unit test extension

* rebase to latest devcontainer
  • Loading branch information
hhenry01 authored Sep 2, 2023
1 parent 85f4bff commit ea90532
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .devcontainer/config/sailbot_workspace.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,17 @@
"editor.rulers": [120],
},

"testMate.cpp.discovery.loadOnStartup": true,
// The following setting just changes the default prelaunch task from "build" to "debug"
"testMate.cpp.test.advancedExecutables": [
{
"pattern": "{build,Build,BUILD,out,Out,OUT}/**/*{test,Test,TEST}*",
"runTask": {
"before": [ "debug" ]
}
}
],

// markdown
// copied from docs: https://github.com/UBCSailbot/docs/blob/main/.vscode/settings.json
"[markdown]": {
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"jeff-hykin.better-cpp-syntax",
"KevinRose.vsc-python-indent",
"llvm-vs-code-extensions.vscode-clangd",
"matepek.vscode-catch2-test-adapter",
"mongodb.mongodb-vscode",
"ms-iot.vscode-ros",
"ms-python.black-formatter",
Expand Down

0 comments on commit ea90532

Please sign in to comment.