]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Adds Test & Integration Test commands to the Visual Studio Code configuration (#32705)
authorAndrew Montagne <andrew@montagne.uk>
Fri, 18 Apr 2025 03:49:36 +0000 (04:49 +0100)
committerGitHub <noreply@github.com>
Fri, 18 Apr 2025 03:49:36 +0000 (13:49 +1000)
Adds the test commands to the vscode configuration.

.vscode/tasks.json

index 1e95fb41b06512c5011ba8aad1a7721df613fdea..7f4efc8c9a6632aac8f2b4a993b9fd8ce8568847 100644 (file)
                 "/consoleloggerparameters:'ForceNoAlign;NoSummary'"
             ],
             "problemMatcher": "$msCompile"
+        },
+        {
+            "label": "test",
+            "command": "dotnet",
+            "type": "shell",
+            "args": [
+                "test",
+                "--no-build",
+                "--configuration",
+                "DebugOpt",
+                "Content.Tests/Content.Tests.csproj",
+                "--",
+                "NUnit.ConsoleOut=0"
+            ],
+            "group": {
+                "kind": "test"
+            },
+            "presentation": {
+                "reveal": "silent"
+            },
+            "problemMatcher": "$msCompile"
+        },
+        {
+            "label": "integration-test",
+            "command": "dotnet",
+            "type": "shell",
+            "args": [
+                "test",
+                "--no-build",
+                "--configuration",
+                "DebugOpt",
+                "Content.IntegrationTests/Content.IntegrationTests.csproj",
+                "--",
+                "NUnit.ConsoleOut=0",
+                "NUnit.MapWarningTo=Failed.ConsoleOut=0",
+                "NUnit.MapWarningTo=Failed"
+            ],
+            "group": {
+                "kind": "test"
+            },
+            "presentation": {
+                "reveal": "silent"
+            },
+            "problemMatcher": "$msCompile"
         }
     ]
 }