Skip to content

Commit

Permalink
Add test tasks for the different Redis versions. Specify default .NET…
Browse files Browse the repository at this point in the history
… solution.
  • Loading branch information
haysch committed Aug 10, 2023
1 parent 1655c1a commit 36b55fe
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"dotnet-test-explorer.testArguments": "/p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./lcov.info",
"dotnet-test-explorer.testProjectPath": "**/*NRedisStack.Tests.csproj"
"dotnet-test-explorer.testProjectPath": "**/*NRedisStack.Tests.csproj",
"dotnet.defaultSolution": "NRedisStack.sln"
}
55 changes: 54 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@
"problemMatcher": "$msCompile"
},
{
"label": "test",
"label": "test 6.2.6",
"dependsOn": [],
"options": {
"env": {
"REDIS": "${env:REDIS__6_2_6}"
}
},
"command": "dotnet",
"type": "process",
"args": [
Expand All @@ -49,6 +54,54 @@
"/p:CoverletOutputFormat=lcov",
"/p:CoverletOutput=./lcov.info"
],
"problemMatcher": "$msCompile"
},
{
"label": "test 7.0.6",
"dependsOn": [],
"options": {
"env": {
"REDIS": "${env:REDIS__7_0_6}"
}
},
"command": "dotnet",
"type": "process",
"args": [
"test",
"${workspaceFolder}/tests/NRedisStack.Tests/NRedisStack.Tests.csproj",
"/p:CollectCoverage=true",
"/p:CoverletOutputFormat=lcov",
"/p:CoverletOutput=./lcov.info"
],
"problemMatcher": "$msCompile"
},
{
"label": "test edge",
"dependsOn": [],
"options": {
"env": {
"REDIS": "${env:REDIS__edge}"
}
},
"command": "dotnet",
"type": "process",
"args": [
"test",
"${workspaceFolder}/tests/NRedisStack.Tests/NRedisStack.Tests.csproj",
"/p:CollectCoverage=true",
"/p:CoverletOutputFormat=lcov",
"/p:CoverletOutput=./lcov.info"
],
"problemMatcher": "$msCompile"
},
{
"label": "test all",
"dependsOrder": "parallel",
"dependsOn": [
"test 6.2.6",
"test 7.0.6",
"test edge"
],
"problemMatcher": "$msCompile",
"group": {
"kind": "test",
Expand Down

0 comments on commit 36b55fe

Please sign in to comment.