I am one of the maintainers of the BQN track and we need to come up with a testing framework.
The main problem here that I am worried about is, if the track takes off, what will be the future problems i might have with a bare-minimum testing framework? I have been looking at minitest but that one has features which may be beyond the scope of this project. So far I have understood that
the file with tests should be importable in some way as data
the file should be runnable in some way to check the tests and get output on stdout.
The testing framework will eventually have to link into the test runner
What are the general recommendations for a brand new unit testing framework? It would be great to implement these early so we don’t have to rewrite the exercises en masse.
GDScript is perhaps not the best example, as it is significantly different than “normal” programming languages (Godot Engine is created with gamedev in mind, and many things work differently here). However, we also found ourselves in a situation where we didn’t have a built-in testing framework, and had to figure it out. The decision was between an existing addon (GUT: Godot Unit Test) or defining the test format on our own. We went with the latter ;)
I assumed that Exercism tests don’t need any setup, mocking etc., so making a custom test runner should be manageable. It looked like a better option than using a third-party addon (which required a lot of configuration, and which is outside of our control). But, again, this was the case for Godot Engine, it might be a bit different for BQN, so you need to decide :)