Skip to content

Commit ea1e6ff

Browse files
committed
[test] Allow unit test case names in snake_case (test_foo())
1 parent 088a848 commit ea1e6ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/modm_tools/unit_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def extract_tests(headers):
9191
name = name[0]
9292

9393
functions = re.findall(
94-
r"void\s+(test[A-Z]\w*)\s*\([\svoid]*\)\s*;", content)
94+
r"void\s+(test[_a-zA-Z]\w*)\s*\([\svoid]*\)\s*;", content)
9595
if not functions:
9696
print("No tests found in {}!".format(header))
9797

0 commit comments

Comments
 (0)