You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error occurs only when the test root folder is wrongly configured or the test is located not under the test root folder.
Test setup, default test root is test res://Tests/MyTest.cs
The test explorer shows no tests and pressing the discover button shows no results.
Using the context menu to run/debug ends up in a script error.
Godot Engine v4.2.2.stable.mono.official.15073afe3 - https://godotengine.org
Vulkan API 1.3.260 - Forward+ - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 4070 Ti
GdUnit4CSharpApi type:GdUnit4.GdUnit4NetAPI loaded.
res://addons/gdUnit4/src/ui/parts/InspectorTreeMainPanel.gd:571 - Out of bounds get index '1' (on base: 'PackedStringArray')
res://addons/gdUnit4/src/ui/parts/InspectorTreeMainPanel.gd:781 - Cannot call method 'set_text' on a null value.
Scan for test suites.
Scanning of 1 test suites took 52ms
core/variant/variant_utility.cpp:1091 - Internal Error: Can't find test suite MingletonTest
core/variant/variant_utility.cpp:1091 - Internal Error: Can't find test case MingletonTest:Instance_IsNotNull_WhenDefault
core/variant/variant_utility.cpp:1091 - Internal Error: Can't find test case MingletonTest:Instance_IsNotNull_WhenDefault
core/variant/variant_utility.cpp:1091 - Internal Error: Can't find test case MingletonTest:Instance_AA
core/variant/variant_utility.cpp:1091 - Internal Error: Can't find test case MingletonTest:Instance_AA
core/variant/variant_utility.cpp:1091 - Internal Error: Can't find test suite MingletonTest
--- Debugging process stopped ---
Steps to Reproduce
do use the default gdunit settings (test root it test)
create a CS test under res://Tests/MyTest.cs
press the test discovery button
the test explorer is empty
use the context menu to debug the test
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
MikeSchulze
changed the title
GD-XXX: Run/Debug CS test fails via context menu
GD-518: Execution/debugging of CS tests via the context menu fails if it is not located below the test root folder
Jun 25, 2024
# Why
see #518
# What
- Use of `localize_path` for all resource paths used (cs scripts contain the system path)
- `create_tree_item()` has been corrected to split the test path into tree items depending on the view mode.
- It takes into account if the test root folder does not exist to split the full path then
# Why
see #518
# What
- Use of `localize_path` for all resource paths used (cs scripts contain
the system path)
- `create_tree_item()` has been corrected to split the test path into
tree items depending on the view mode.
- It takes into account if the test root folder does not exist to split
the full path then
The used GdUnit4 version
4.3.2 (Latest Release)
The used Godot version
v4.2.2.stable.mono.official [15073afe3]
Operating System
ALL
Describe the bug
This error occurs only when the test root folder is wrongly configured or the test is located not under the test root folder.
Test setup, default test root is
test
res://Tests/MyTest.cs
The test explorer shows no tests and pressing the discover button shows no results.
Using the context menu to run/debug ends up in a script error.
Steps to Reproduce
test
)res://Tests/MyTest.cs
the test explorer is empty
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: