145 lines
4.3 KiB
JSON
145 lines
4.3 KiB
JSON
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|