You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/create_test.py
+10-42Lines changed: 10 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,6 @@
4
4
importos
5
5
importre
6
6
importsys
7
-
fromsubprocessimportcall
8
7
9
8
10
9
defmain():
@@ -25,19 +24,13 @@ def main():
25
24
help="The path to the unit test file relative to the tests folder (e.g. core). This should correspond to the relative path of the class or component being tested. (default: .)",
26
25
default=".",
27
26
)
28
-
parser.add_argument(
29
-
"-i",
30
-
"--invasive",
31
-
action="store_true",
32
-
help="if set, the script will automatically insert the include directive in test_main.cpp. Use with caution!",
"Include directives in test_main.cpp could not be sorted automatically using clang-format. Please sort them manually."
124
-
)
125
-
else:
126
-
print("Could not find a valid position in test_main.cpp to insert the include directive.")
127
-
128
-
else:
129
-
print("\nRemember to #include the new test header in this file (following alphabetical order):")
130
-
print(os.path.abspath("test_main.cpp"))
131
-
print("Insert the following line in the appropriate place:")
132
-
print(f'#include "tests/{file_path}"')
98
+
print(
99
+
"Don't forget to add special tags to the test case if needed, see https://docs.godotengine.org/en/latest/contributing/development/core_and_modules/unit_testing.html#special-tags-in-test-case-names for more information."
0 commit comments