Configure test extension for vscode

This commit is contained in:
2022-11-27 14:55:06 +01:00
parent 363c9568a7
commit e67c12358f
8 changed files with 102 additions and 4 deletions

28
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,28 @@
{
// 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": [
{
"name": "Unity Test Explorer Debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${command:unityExplorer.debugTestExecutable}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/Apps/mingw64/bin/gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}

14
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,14 @@
{
"unityExplorer.testSourceFileRegex": "\\w+_test.c",
"unityExplorer.testCaseRegex": "void\\s+(test_.*)\\s*\\(.*\\)",
"unityExplorer.testExecutableRegex": "build/exe/$1.exe",
"unityExplorer.testSourceFolder": "test",
"unityExplorer.testBuildApplication": "ninja",
"unityExplorer.testBuildCwdPath": "build",
// "unityExplorer.unitUnderTestFolder": "cmd_parser",
"unityExplorer.unitUnderTestFileRegex": "\\w+\\.[ch]",
"unityExplorer.prettyTestCaseRegex": "test_(\\w+)",
"unityExplorer.prettyTestFileRegex": "(\\w+)_test\\.c",
"unityExplorer.debugConfiguration": "Unity Test Explorer Debug",
}