Skip to content

Instantly share code, notes, and snippets.

@lira92
Created Aug 1, 2018
Embed
What would you like to do?
Tasks Visual studio code
{
"label": "Test",
"type": "shell",
"command": "dotnet test [caminho do projeto de testes] /p:CollectCoverage=true /p:CoverletOutputFormat=opencover",
"group": "test",
"presentation": {
"reveal": "silent",
"panel": "shared"
}
},
{
"label": "View coverage report in chrome",
"type": "shell",
"command": "/usr/bin/google-chrome",
"dependsOn": "Generate coverage report",
"args": [
"${workspaceRoot}/[caminho do relatório html]"
],
"group": "test"
},
{
"label": "Generate coverage report",
"type": "shell",
"command": "dotnet reportgenerator \"-reports:coverage.xml\" \"-targetdir:./report\"",
"group": "test",
"options": {
"cwd": "${workspaceRoot}/[caminho do projeto de testes]"
},
"presentation": {
"reveal": "silent",
"panel": "shared"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment