Created
August 1, 2018 03:41
-
-
Save lira92/647d127fc13899ae3382c01e25555efd to your computer and use it in GitHub Desktop.
Tasks Visual studio code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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