-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
GDScript: Load global classes when running debug tests #79425
GDScript: Load global classes when running debug tests #79425
Conversation
So when running compiler debug tests it works with dependencies within a project.
I tested it. This works under the following conditions:
It doesn't work for regular tests |
Interesting! So this only works because it's done within the context of a project. Is there any situation in which this might be run but there is no I was working on something similar to try to add a unit test to #79205, but there we cannot rely on |
Yes, the test runner does not use a project nor the global classes config. It generates the index on the fly from all the test files: godot/modules/gdscript/tests/gdscript_test_runner.cpp Lines 321 to 337 in f618701
I don't think there's such case. This code is really only run from one code path AFAIK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. It has been tested and it works. Thanks @vnen!
Thanks! |
So when running compiler debug tests it works with dependencies within a project.