Unit Testing: Parsing of test cases fails for TEST_CASE() formatted with spaces (VSC-1544) #1371
Open
1 task done
Labels
bug-report
Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)
OS
Linux
Operating System version
Ubuntu Ubuntu 20.04.6 LTS (WSL)
Visual Studio Code version
1.96.0
ESP-IDF version
5.3.1
Python version
3.8.10
Doctor command output
report.txt
Extension
No response
Description
When using the TESTING tab in VSCode, testcases are only parsed correctly if the unity macro
TEST_CASE("testname", "group")
is formatted without space before testname. If a space is inserted like thisTEST_CASE( "testname", "group" )
, the testcase won't show up in the TESTING tab.This is consistent with the regular expression given in docs_espressif/en/additionalfeatures/unit-testing.rst but causes issues when auto-formating is activated. As the test project will build correctly with this formatting the regex should be changed?
Correct behaviour:
Faulty behaviour:
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: