diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..ec8565f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "formulahendry.dotnet-test-explorer", + "ms-dotnettools.csharp", + "editorconfig.editorconfig" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f4ebc69 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9cc75ce --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "omnisharp.enableRoslynAnalyzers": true, + "markdownlint.config": { + "MD028": false, + "MD025": { + "front_matter_title": "" + } + } +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..097a056 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,144 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "group": "build", + "args": [ + "build", + "${workspaceFolder}/Microsoft.OpenApi.OData.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "test", + "command": "dotnet", + "type": "process", + "group": "test", + "args": [ + "test", + "${workspaceFolder}/Microsoft.OpenApi.OData.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary", + "--collect:\"XPlat Code Coverage\"" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "coverage:clean", + "type": "shell", + "group": "test", + "linux": { + "command": "rm", + "args": [ + "-r", + "${workspaceFolder}/test/Microsoft.OpenAPI.OData.Reader.Tests/TestResults" + ] + }, + "windows": { + "command": "powershell", + "args": [ + "-command", + "Remove-Item -Recurse -Include TestResults -Path ${workspaceFolder}/tests" + ] + } + }, + { + "label": "coverage:unit", + "type": "process", + "group": "test", + "linux":{ + "command": "reportgenerator", + "args": [ + "-reports:${workspaceFolder}/tests/**/coverage.cobertura.xml", + "-targetdir:${workspaceFolder}/reports/coverage" + ], + }, + "windows": { + "command": "reportgenerator", + "args": [ + "-reports:${workspaceFolder}\\test\\**\\coverage.cobertura.xml", + "-targetdir:${workspaceFolder}\\reports\\coverage" + ] + }, + "dependsOn": [ + "coverage:clean", + "test" + ], + "dependsOrder": "sequence" + }, + { + "label": "coverage:launch", + "type": "shell", + "linux": { + "command": "xdg-open", + "args": [ + "${workspaceFolder}/reports/coverage/index.html" + ] + }, + "osx": { + "command": "open", + "args": [ + "${workspaceFolder}/reports/coverage/index.html" + ] + }, + "windows": { + "command": "start", + "args": [ + "${workspaceFolder}/reports/coverage/index.html" + ] + }, + "group": "test", + }, + { + "label": "coverage:launch", + "group": "test", + "dependsOrder": "sequence", + "dependsOn": [ + "coverage:unit", + "coverage:launch" + ] + }, + { + "label": "clean", + "command": "dotnet", + "type": "process", + "group": "build", + "args": [ + "clean" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "group": "build", + "args": [ + "publish", + "${workspaceFolder}/Microsoft.OpenApi.OData.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "group": "build", + "args": [ + "watch", + "run", + "${workspaceFolder}/Microsoft.OpenApi.OData.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + } + ] +}