From f404ea039d3c4ebc0e41714ae5ddb14c8fdd9a82 Mon Sep 17 00:00:00 2001 From: Andrew Montagne Date: Fri, 18 Apr 2025 04:49:36 +0100 Subject: [PATCH] Adds Test & Integration Test commands to the Visual Studio Code configuration (#32705) Adds the test commands to the vscode configuration. --- .vscode/tasks.json | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1e95fb41b0..7f4efc8c9a 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -32,6 +32,50 @@ "/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" } ] }