From 464775140912c8453c7ffefdd2cb9a3a62bb3e84 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 9 Jan 2025 00:59:54 -0500 Subject: [PATCH] vscode: Add Spark Test entry to launch.json, tasks.json --- .vscode/launch.json | 38 ++++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 27 ++++++++++++++++++++++++++- 2 files changed, 64 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 2a8b1253d..722b291c9 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -137,6 +137,39 @@ "stopAtEntry": false, "console": "integratedTerminal" }, + { + "name": "Spark Test", + "type": "coreclr", + "request": "launch", + "program": "", + "windows": { + "preLaunchTask": "Build Spark (Debug)", + "program": "Spark.Console.exe", + "cwd": "build/Debug/bin/net7.0", + "args": [ + "test", + "${input:sparkTest}" + ] + }, + "stopAtEntry": false, + "console": "integratedTerminal" + }, + { + "name": "Spark Test (Skip Build)", + "type": "coreclr", + "request": "launch", + "program": "", + "windows": { + "program": "Spark.Console.exe", + "cwd": "build/Debug/bin/net7.0", + "args": [ + "test", + "${input:sparkTest}" + ] + }, + "stopAtEntry": false, + "console": "integratedTerminal" + }, { "name": "Sparkd", "type": "cppdbg", @@ -267,6 +300,11 @@ "description": "Config Server URL", "default": "http://localhost:8000/config", }, + { + "id": "sparkTest", + "type": "promptString", + "description": "Test to run", + }, { "id": "sparkdTest", "type": "promptString", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 0ef537298..f6a531f66 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -705,6 +705,26 @@ "color": "terminal.ansiGreen", }, }, + { + "label": "Test Spark (Debug)", + "dependsOn": "Build Spark (Debug)", + "type": "process", + "icon": { + "id": "coverage", + "color": "terminal.ansiYellow", + }, + "command": "", + "windows": { + "command": "Spark.Console.exe", + "args": [ + "test", + "${input:sparkTest}" + ], + "options": { + "cwd": "${workspaceFolder}/build/Debug/bin/net7.0", + } + }, + }, { "label": "View DataStreamQueryAnalyzer Logs (Last Run)", "type": "process", @@ -823,6 +843,11 @@ "id": "sparkdConfigQuery", "type": "promptString", "description": "Config Type(s)" - } + }, + { + "id": "sparkTest", + "type": "promptString", + "description": "Test to run", + }, ] }