Skip to content

Tags: MikeSchulze/gdUnit4

Tags

v4.5.0

Toggle v4.5.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
bump to 4.5.0 (#613)

v4.4.3

Toggle v4.4.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
GD-598: Fixing memory leaks on test execution (#599)

# Why
Running tests via CMD line shows a lot of memory leaks at program exit.

# What
- fixed releasing of all singletons
- `func_assert` has problems with lambdas when using inside
`timer.timeout.connect`, converted lambda into function
- Handling of stored asserts in the thread context results in
inconsistency during cleanup
- fixed cleanup on `GdUnitCommandHandlerTest`


## Finally, I have reduced most of the memory leaks nodes, but there are
still `GDScriptFunctionState` orphaned nodes that I can't solve because
these are handled internally by Godot see
[74449](godotengine/godot#74449)

```
Statistics: | 947 tests cases | 0 error | 0 failed | 1 flaky | 13 skipped | 0 orphans |

Executed test suites: (100/104), 4 skipped
Executed test cases: (934/947), 13 skipped
Total time:        3min 0s 409ms
Open Report at: file:///home/runner/work/gdUnit4/gdUnit4/reports/report_1/index.html
Exit code: 0
----------------------------------------------------------------
Cleanup singletons ["GdUnitThreadManager", "GdUnitDefaultValueDecoders", "GdUnitCommandHandler"]

	Unregister singleton 'GdUnitThreadManager'
	Free singleton instance 'GdUnitThreadManager:<Object#507678557642>'
	Successfully freed 'GdUnitThreadManager'

	Unregister singleton 'GdUnitDefaultValueDecoders'
	Free singleton instance 'GdUnitDefaultValueDecoders:<Object#509540832395>'
	Successfully freed 'GdUnitDefaultValueDecoders'

	Unregister singleton 'GdUnitCommandHandler'
	Free singleton instance 'GdUnitCommandHandler:<Object#3858659025580>'
	Successfully freed 'GdUnitCommandHandler'
----------------------------------------------------------------
Finallize .. done
Finallize ..
-Orphan nodes report-----------------------
Finallize .. done
XR: Clearing primary interface
XR: Removed interface "Native mobile"
XR: Removed interface "OpenXR"
WARNING: ObjectDB instances leaked at exit (run with --verbose for details).
     at: cleanup (core/object/object.cpp:2327)
Leaked instance: GDScriptFunctionState:9223373291404658414
Leaked instance: GDScriptFunctionState:92233732947[6010](https://github.com/MikeSchulze/gdUnit4/actions/runs/11956449331/job/33331231410?pr=599#step:4:6018)1646
Leaked instance: GDScriptFunctionState:9223373292545509197
Leaked instance: GDScriptFunctionState:9223373291673093970
Leaked instance: GDScriptFunctionState:9223373293719914330
Leaked instance: GDScriptFunctionState:9223373292881053539
Leaked instance: GDScriptFunctionState:9223373296521709422
Leaked instance: GDScriptFunctionState:9223378085393468557
Leaked instance: GDScriptFunctionState:9223382060754801221
Leaked instance: GDScriptFunctionState:9223373293753472331
Leaked instance: GDScriptFunctionState:9223377142497156399
Leaked instance: GDScriptFunctionState:9223378085359924447
Leaked instance: GDScriptFunctionState:9223382060788375283
Hint: Leaked instances typically happen when nodes are removed from the scene tree (with `remove_child()`) but not freed (with `free()` or `queue_free()`).
Orphan StringName: test_case1 (static: 0, total: 1)
Orphan StringName: _validate_callback (static: 0, total: 1)
Orphan StringName: await_millis (static: 0, total: 5)
Orphan StringName: test_timeout_single_yield_wait (static: 0, total: 1)
Orphan StringName: test_timeout_2s (static: 0, total: 1)
Orphan StringName: _execute (static: 0, total: 1)
Orphan StringName: test_timeout_4s (static: 0, total: 1)
Orphan StringName: timeout (static: 2, total: 8)
Orphan StringName: cb_is_equal (static: 0, total: 2)
Orphan StringName: test_timeout_long_running_test_abort (static: 0, total: 1)
Orphan StringName: test_timeout_and_assert_fails (static: 0, total: 1)
StringName: 11 unclaimed string names at exit.
Run tests ends with 0
```

v4.4.2

Toggle v4.4.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update bug_report.yml

v4.4.1

Toggle v4.4.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
GD-579: Minimize warnings of testsuite resource loading (#587)

# Why
<!-- Enter a clean description why we need this changeset -->


# What
<!-- Describe exactly what you have changed and what the effects are -->

v4.4.0

Toggle v4.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update README.md

v4.3.4

Toggle v4.3.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
GD-546: Allow to test un-typed values by `assert_that` (#547)

# Why
see #546

# What
- do allow all Variant types for `is_equal` and `is_not_equal` when
using the un-typed `assert_that`
- changed the fixed typed `is_equal` and `is_not_equal` to accept
Variant type

v4.3.3

Toggle v4.3.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
GD-522: Fix shortcuts can't be changed anymore in GdUnit4 settings (#526

)

# Why
The change shortcuts was broken and not able to change it when clicking
on the shortcut settings.

# What
- fixed by moving the shortcut capture scene to the parent and manage
the visibility differently
- fixes also to modulate on the label to have better visualization
animation

v4.3.2

Toggle v4.3.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
GD-503: Rework plugin exit to avoid system crash and memory leaks (#504)

# Why
The plugin has some issues to release resources at Godot exit and result
sometimes in a segmentation fault under Linux

# What
- fix `remove_child` on `free_instance` to be called deferred now
- removed the temporary `free_fix` workaround
- fix orphan nodes in `GdUnitTestDiscoverer`
- introduce a new flag to call deferred on `free_instance` at plugin
exit


# Godot bug related
godotengine/godot#92727

v4.3.1

Toggle v4.3.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
bump to v4.3.1 (#489)

bump to v4.3.1

v4.3.0

Toggle v4.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
GD-480: Fix settings dialog has wrong theme for the background panel (#…

…481)

# Why
see #480

# What
Added a default panel as parent to the panel container

![image](https://github.com/MikeSchulze/gdUnit4/assets/347037/7d32bc28-380a-4714-982f-3049f6de375a)