-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit Testing: Parsing of test cases fails for TEST_CASE() formatted with spaces (VSC-1544) #1371
Comments
We can fix the regex to include this case too. I'm just wondering which auto-formatter are you using and why it formats this way ? |
That is great news, thanks.
I'm using clang-format with some custom clang-format style options. I think the relevant option in .clang-format is |
Could you please try this vsix installer to see if the issue is fixed ? |
I'm off my computer until early January. I will Check it out when I'm back. |
The vsix installer fixes the issue. Thanks! |
Thanks for using our extension! 🚀 Your feedback matters! Could you take a moment to rate it on the marketplace? A positive rating helps other developers discover our tools and motivates us to keep improving. ⭐ Rate ESP-IDF Extension: https://marketplace.visualstudio.com/items?itemName=espressif.esp-idf-extension&ssr=false#review-details Your support means a lot to our development team! |
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: