Skip to content

Commit

Permalink
vscode/tasks.json Add tests for opt, dbg, fastbuild
Browse files Browse the repository at this point in the history
Allow tests to run in different compilation modes.
  • Loading branch information
ohodson committed Jun 6, 2023
1 parent 9a6ac0d commit 702236c
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,48 @@
}
},
{
"label": "Bazel run all tests",
"label": "Bazel run all tests (dbg)",
"type": "shell",
"command": "bazel",
"args": ["test", "--cache_test_results=no", "//..."],
"args": ["test", "-c", "dbg", "--cache_test_results=no", "//..."],
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": "$gcc",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true
}
},
{
"label": "Bazel run all tests (fastbuild)",
"type": "shell",
"command": "bazel",
"args": ["test", "-c", "fastbuild", "--cache_test_results=no", "//..."],
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": "$gcc",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true
}
},
{
"label": "Bazel run all tests (opt)",
"type": "shell",
"command": "bazel",
"args": ["test", "-c", "opt", "--cache_test_results=no", "//..."],
"group": {
"kind": "test",
"isDefault": true
Expand Down

0 comments on commit 702236c

Please sign in to comment.