Open dalexeev opened 1 day ago
So warnings now have use a ~~
prefix instead of >>
? Is there a functional benefit to that, or is it wholly stylistic?
So warnings now have use a
~~
prefix instead of>>
? Is there a functional benefit to that, or is it wholly stylistic?
Yes, warnings are not produced in release builds, so we need a marker to cut only them but leave errors.
This doesn't matter now, since GDScript tests don't seem to run for release builds.
Currently, the GDScript test system has a problem: it does not allow us to track multiple errors. Because of this, we have to have many small files for error tests, unlike warning and feature tests.
While this limitation is justified for parser tests due to cascading errors, I think there is no obstacle for analyzer and runtime tests to track multiple errors. Probably, using
=
instead of+=
inmodules/gdscript/tests/gdscript_test_runner.cpp
is even a bug, leading to overwriting the output, so we only track the last error.This PR allows:
How to make multiple subtests of runtime errors within one test:
Note: I did not combine all groups of similar tests within this PR.