unityTestCtrl.debugConfiguration |
Configuration to run when debugging tests. See Debugging for more info. |
Unit Test |
unityTestCtrl.prettyTestCaseRegex |
Regular expression to be used to simplify the test case label which by default is the full function name. Put what you want to keep in the first matching group and the rest will be removed. Leave empty to disable this. Inactive: Active: |
test_(\w+) |
unityTestCtrl.prettyTestFileRegex |
Regular expression to be used to simplify the test file label which by default contains the relative path to the file as well as its extension. Put what you want to keep in the first matching group and the rest will be removed. Leave empty to disable this. Inactive: Active: |
(\w+)Test.c |
unityTestCtrl.unitUnderTestFolder |
(Unused) The path the extension should use to look for the unit under test source files. By default the workspace root is used. |
src |
unityTestCtrl.unitUnderTestFileRegex |
(Unused) Regular expression against which unit under test source files should match. These are tracked for changes to mark test results as old if not re-run. |
\w+\.[ch] |
unityTestCtrl.testSourceFolder |
The path the extension should use to look for the unit test source files. By default the workspace root is used. |
testsrc |
unityTestCtrl.testSourceFileRegex |
Regular expression against which test source files should match. |
\w+Test.c |
unityTestCtrl.testCaseRegex |
Regular expression against which test cases in a file should match. The actual test case name must be put in the first matching group, while the rest of the regular expression can be used to match only the lines containing test names. |
void\s+(test_.*)\s*\(.*\) |
unityTestCtrl.preBuildCommand |
Any command which must be run before building the unit tests. If empty, no command will be run. |
make clean |
unityTestCtrl.testBuildApplication |
Application used to build the tests (e.g. make , cmake , gcc ). A test will be built by running this with the testBuildTargetRegex as build target. |
make |
unityTestCtrl.testBuildCwdPath |
The current working directory where the build command will be run in. By default the workspace root is used. |
. |
unityTestCtrl.testBuildArgs |
Any additional arguments that need to be passed to the build command when building a test. Note that the target to be built is passed separately, so there is no need to add it here. |
-DTEST |
unityTestCtrl.testBuildTargetRegex |
Regular expression which should be applied to the test source file name (without extension) to produce a target for the build system. A $1 will be replaced with the file name. By default just the source file name without extension will be used (e.g. for test/unitTest.c , make unitTest will be called). |
out/test/$1.exe |
unityTestCtrl.testExecutableLauncher |
Launcher command used to start the test executable file |
run_test.sh |
unityTestCtrl.testExecutableRegex |
Regular expression which should be applied to the test source file name (without extension) to produce the executable file name to run the test. A $1 will be replaced with the file name. By default just the source file name without extension will be used (e.g. for test/unitTest.c , unitTest will be ran). |
out/test/$1.exe |
unityTestCtrl.testExecutableArgs |
Any additional arguments that need to be passed to the test executable when running it. |
-v |
unityTestCtrl.testExecutableArgSingleCaseRegex |
Regular expression which should be applied to a test case (not the pretty-fied label) and passed as argument to the test executable to only run that test case. This speeds up execution when a single test case of a large file is needed to be run. A $1 will be replaced with the test case name. By default all the file's test cases are run even if a single test case is run from the interface. |
-n $1 |