Skip to content

Instantly share code, notes, and snippets.

@lira92
Created August 1, 2018 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lira92/647d127fc13899ae3382c01e25555efd to your computer and use it in GitHub Desktop.
Save lira92/647d127fc13899ae3382c01e25555efd to your computer and use it in GitHub Desktop.
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