add integrations to run and debug tests in vscode (#2200)

This commit is contained in:
Brendan Forster
2020-06-07 13:19:58 -03:00
committed by GitHub
parent 449faaefea
commit 5b53d839ac
2 changed files with 37 additions and 8 deletions
+33
View File
@@ -0,0 +1,33 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run unit tests",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/Octokit.Tests/bin/Debug/netcoreapp3.1/Octokit.Tests.dll",
"args": [],
"cwd": "${workspaceFolder}/Octokit.Tests",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": "Run convention tests",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/Octokit.Tests.Conventions/bin/Debug/netcoreapp3.1/Octokit.Tests.Conventions.dll",
"args": [],
"cwd": "${workspaceFolder}/Octokit.Tests.Conventions",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": "Attach to process",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
+4 -8
View File
@@ -2,14 +2,12 @@
"version": "2.0.0",
"tasks": [
{
"label": "Build Solution",
"label": "build",
"command": "dotnet",
"type": "shell",
"args": [
"build",
// Ask dotnet build to generate full paths for file names.
"/property:GenerateFullPaths=true",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
"/consoleloggerparameters:NoSummary"
],
"group": {
@@ -17,7 +15,7 @@
"isDefault": true
},
"presentation": {
"reveal": "silent",
"reveal": "silent"
},
"problemMatcher": "$msCompile"
},
@@ -25,11 +23,9 @@
"label": "Format",
"command": "dotnet",
"type": "shell",
"args": [
"format",
],
"args": ["format"],
"presentation": {
"reveal": "silent",
"reveal": "silent"
},
"problemMatcher": "$msCompile"
}