MikeSchulze / gdUnit4

A Godot Unit Test Framework. Support for GDScript and C# unit testing
MIT License
490 stars 28 forks source link

GD-494: Fix test discovery error when test root path is set to empty #496

Closed MikeSchulze closed 1 month ago

MikeSchulze commented 1 month ago

Why

The error occurs because splitting a path by an empty string is invalid and results later in an index out of bounds error

What

Fixed by set the root_folder back to the resource root before splitting into parts for the tree