Skip to content

Commit

Permalink
add integrations to run and debug tests in vscode (#2200)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Jun 7, 2020
1 parent 449faae commit 5b53d83
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 8 deletions.
33 changes: 33 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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}"
}
]
}
12 changes: 4 additions & 8 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,30 @@
"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": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "silent",
"reveal": "silent"
},
"problemMatcher": "$msCompile"
},
{
"label": "Format",
"command": "dotnet",
"type": "shell",
"args": [
"format",
],
"args": ["format"],
"presentation": {
"reveal": "silent",
"reveal": "silent"
},
"problemMatcher": "$msCompile"
}
Expand Down

0 comments on commit 5b53d83

Please sign in to comment.