Gut icon indicating copy to clipboard operation
Gut copied to clipboard

Specify a test script suffix from the in-editor Plugin Controller

Open brisberg opened this issue 3 years ago • 0 comments

First, thanks for this cool framework!

You suggest a test directory structure, which is reasonable. However, I'd like to use a deviation from that: Specifically I'd like my tests to look like <script_name>_test.gd so they appear next to the script they are testing.

I believe this should be possible using File Prefix and File Suffix settings.

These settings are already present in your example config file. An empty prefix of '' and a suffix of _test.gd will work for my purposes.

However, this does not seem to be possible for two reasons:

  • The collection algorithm does not respect suffix in the config file (it default to using .gd)
  • In the in-editor Gut Plugin Controller: File_Prefix cannot be empty, and there is no control for File_Suffix

I've prepared a PR which fixed both of these issues and makes such a test schema possible. Please let me know what you think.

brisberg avatar Jul 25 '22 06:07 brisberg