Files
configotron/.vscode/tasks.json
2025-06-07 03:23:42 +02:00

71 lines
1.3 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "run",
"problemMatcher": [
"$rustc"
],
"label": "rust: cargo run",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
}
},
{
"type": "cargo",
"command": "test",
"problemMatcher": [
"$rustc"
],
"group": "test",
"label": "rust: cargo test",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
}
},
{
"type": "cargo",
"label": "cargo: coverage",
"command": "llvm-cov",
"args": ["--lcov", "--output-path", "coverage/lcov.info"],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
},
},
{
"type": "shell",
"label": "generate coverage report",
"command": "lcov-summary",
"args": [
"coverage/lcov.info"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
},
"problemMatcher": [],
"dependsOrder": "sequence",
"dependsOn": "cargo: coverage"
}
]
}