Skip to content

Instantly share code, notes, and snippets.

@bihe
Created June 29, 2018 14:32
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 bihe/cb8b1acad7336af036ad0ccd35503823 to your computer and use it in GitHub Desktop.
Save bihe/cb8b1acad7336af036ad0ccd35503823 to your computer and use it in GitHub Desktop.
vscode tasks.json -- dotnet.core
{
"version": "2.0.0",
"command": " ",
"args": [],
"tasks": [
{
"group": "build",
"type": "process",
"label": "BUILD: build",
"command": "dotnet",
"args": [
"build",
"--no-restore"
],
//"isShellCommand": true,
"options": {
"cwd": "${workspaceRoot}"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"problemMatcher": "$msCompile"
},
{
"group": "build",
"type": "shell",
"label": "BUILD: RE-build",
"command": "dotnet build --no-incremental --verbosity n --force",
//"isShellCommand": true,
"options": {
"cwd": "${workspaceRoot}"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"problemMatcher": "$msCompile"
},
{
"group": "test",
"type": "process",
"label": "TEST: xunit.tests",
"command": "dotnet",
"args": [
"test",
"--no-restore",
],
"options": {
"cwd": "${workspaceRoot}/Login.XTests"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"problemMatcher": "$msCompile"
},
{
"group": "test",
"type": "process",
"label": "TEST: list tests",
"command": "dotnet",
"args": [
"test",
"--no-restore",
"-t"
],
"options": {
"cwd": "${workspaceRoot}/Login.XTests"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"problemMatcher": "$msCompile"
},
{
"label": "TEST: with coverage",
"command": "dotnet",
"type": "process",
"args": [
"test",
"/p:CollectCoverage=true",
"/p:CoverletOutputFormat=lcov",
"/p:CoverletOutput=./lcov.info",
"${workspaceFolder}/Login.XTests/Login.XTests.csproj"
],
"problemMatcher": "$msCompile",
"group": {
"kind": "test",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment