Gut
Gut copied to clipboard
Specify a test script suffix from the in-editor Plugin Controller
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
suffixin the config file (it default to using.gd) - In the in-editor Gut Plugin Controller:
File_Prefixcannot be empty, and there is no control forFile_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.