Skip to content

Commit

Permalink
Add basic VSCode build/run support
Browse files Browse the repository at this point in the history
This enables all the scenarios one needs to do development: Build, Clean, Run Tests, Debug Tests. *But* it's all less than compelling:
- .NET Test Explorer Pane can't debug tests (formulahendry/vscode-dotnet-test-explorer#247)
- The built in OmniSharp support doesn't let you run all the tests with a shortcut, or with a command. Only at the class level
- The standard editor commands for running tests are fine, but debugging is a bear
  • Loading branch information
grork committed Jun 7, 2020
1 parent 7ddeb98 commit 2ddc113
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
74 changes: 74 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Solution",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/StoryvoidDotNet.sln",
"/property:GenerateFullPaths=true"
],
"problemMatcher": "$msCompile",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Clean Solution",
"command": "dotnet",
"type": "process",
"args": [
"clean",
"${workspaceFolder}/StoryvoidDotNet.sln",
"/property:GenerateFullPaths=true"
],
"problemMatcher": "$msCompile",
"group": "none"
},
{
"label": "OAuth Library Tests",
"command": "dotnet",
"type": "process",
"args": [
"test",
"${workspaceFolder}/OAuthLibraryTests/OAuthLibraryTests.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile",
"group": "test",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
}
},
{
"label": "Instpaper API Tests",
"command": "dotnet",
"type": "process",
"args": [
"test",
"${workspaceFolder}/InstapaperApiTests/InstapaperApiTests.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile",
"group": "test",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
}
}
]
}

0 comments on commit 2ddc113

Please sign in to comment.