-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
[TRACKER] Unit Test Porting #40659
Comments
crash bug on vscode #40666 |
@RevoluPowered Maybe change those bullets to checkboxes. |
I went through some existing tests to see the feasibility of them to be ported:
For stress tests I propose prepending "[Stress]" tags to test case names for now, so that they can be excluded to have deterministic results on GitHub's CI, I think those are more useful to run on separate instances to find more bugs rather than regressions. |
Porting basis currently. |
Basis is ported #40940 |
OrderedHashMap is ported in #41117 |
ClassDB tests ported in #40980. This opens up possibility to write unit tests for classes which inherit |
test_fbx will be ported by me after we can get the 3.2 pr out of the way I've backed up the branch with the originals to RevoluPowered/backup_fbx_tests (they're in the old folder) |
Preliminary documentation is written in godotengine/godot-docs#4017, once merged, should be available under Update: available at https://docs.godotengine.org/en/latest/development/cpp/unit_testing.html. |
We integrated doctest unit test framework and have depreciated old unit tests in favor of headless tests which can run on our CI.
Some useful information and the PR can be found here:
#40148 (comment)
Test status:
OS::get_singleton()->execute("/bin/ls");
.*updated from Xrayez[m] below
New tests to be written:
General guide:
For safety, we actually initialized the os::singleton properly for you so that logging works fine.
Cool stuff we can now do which we couldn't before
./godot --test -d
(profile your tests time)./godot --test --reporters=xml,junit,console
(report some details in other formats for CI or Coverage checkers)./godot --test -s
(show what checks are in the tests)The text was updated successfully, but these errors were encountered: