forked from home-assistant/core
Add vscode task code coverage (#53783)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
This commit is contained in:
22
.vscode/tasks.json
vendored
22
.vscode/tasks.json
vendored
@ -60,6 +60,21 @@
|
|||||||
},
|
},
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "Code Coverage",
|
||||||
|
"detail": "Generate code coverage report for a given integration.",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "pytest ./tests/components/${input:integrationName}/ --cov=homeassistant.components.${input:integrationName} --cov-report term-missing",
|
||||||
|
"group": {
|
||||||
|
"kind": "test",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
"panel": "new"
|
||||||
|
},
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "Generate Requirements",
|
"label": "Generate Requirements",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
@ -102,5 +117,12 @@
|
|||||||
},
|
},
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"id": "integrationName",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "For which integration should the task run?"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user