From 870b1a6a258ce308bf6f1e94c2f614f44524c2f2 Mon Sep 17 00:00:00 2001 From: Gil Poiares-Oliveira Date: Sun, 20 Aug 2023 10:13:04 +0100 Subject: [PATCH] Add .vscode/launch.json for testing in VS Code --- .vscode/launch.json | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4636ac2 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,48 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Debug unit tests in library 'omglol'", + "cargo": { + "args": [ + "test", + "--no-run", + "--lib", + "--package=omglol" + ], + "filter": { + "name": "omglol", + "kind": "lib" + } + }, + "args": [], + "cwd": "${workspaceFolder}", + "envFile": ".env" + }, + { + "type": "lldb", + "request": "launch", + "name": "Debug integration test 'integration_tests'", + "cargo": { + "args": [ + "test", + "--no-run", + "--test=integration_tests", + "--package=omglol" + ], + "filter": { + "name": "integration_tests", + "kind": "test" + } + }, + "args": [], + "cwd": "${workspaceFolder}", + "envFile": ".env" + } + ] +} \ No newline at end of file