- Moved as many files as I could to
gut_tests_and_examples
so that there was less stuff to uncheck when installing via the in-engine Asset Library. I'm still not 100% happy with the setup.
- Moved the License to
addons/gut/
so that it is distributed with the addon and doesn't accidently get copied into the root of some other project when installed via the Asset Library.
- Some README tweaks.
- Fixed resize window handle bug. It was connecting to wrong signals and didn't work.
- Missed changing
simulate
to call _physics_process
instead of _fixed_process
in the 3.0 conversion. Fixed that.
- Improved summary. It now lists all failures and pendings instead of just listing the scripts that have failures or pending tests.
- Fixed issue where the
signal_watcher
could try to disconnect from a freed object.
- Added
yield_to
which allows you to yield
to a signal or a maximum amount of time. This keeps your tests moving along if you yield to a signal that never gets emitted. Now the test will fail after an amount of time instead of sitting in limbo forever. This will also watch the signals on the object so you can make asserts about signals after the yield
and you can save a line of code.
Example:
# wait for my_object to emit the signal 'my_signal'
# or 5 seconds, whichever comes first.
yield(yield_to(my_object, 'my_signal', 5), YIELD)
assert_signal_emitted(my_object, 'my_signal', \
'Maybe it did, maybe it didnt, but we still got here.')