Skip to content

Commit

Permalink
Add "Test target..." task (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rostislav Khlebnikov authored and GitHub Enterprise committed Jan 28, 2025
1 parent 6d0df1f commit 1d192fc
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions share/templates/vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,38 @@
"revealProblems": "onProblem"
}
},
{
"label": "Test target...",
"type": "shell",
"command": "bbs_build build --known-env --target ${input:testtarget} --test run -v",
"problemMatcher": [
"$gcc",
{
"owner": "CTest",
"fileLocation": [
"absolute"
],
"source": "CTest",
"pattern": [
{
"regexp": "^(.*)$",
"message": 1
},
{
"regexp": "^Error (.*)\\((\\d+)\\): (.*)$",
"file": 1,
"line": 2,
"message": 3
}
]
}
],
"presentation": {
"showReuseMessage": false,
"clear": true,
"revealProblems": "onProblem"
}
},
{
"label": "Build current component test",
"type": "shell",
Expand Down Expand Up @@ -294,6 +326,12 @@
"description": "Params for bbs_build_env",
"default": "",
"type": "promptString"
},
{
"id": "testtarget",
"description": "Target to test",
"default": "",
"type": "promptString"
}
]
}

0 comments on commit 1d192fc

Please sign in to comment.