Thank you for the first point, I did not know that glob was already used. As to the second point that was an error from my part - was looking at my angular code and added *.spec.elm
automatically - in reality I’m using ChiSquaredSpec.elm
The angular style documentation rationalises the use of .spec suffix with:
- Provides a consistent way to quickly identify tests.
- Provides pattern matching for test runners
I also like to think of this tests as a sort of documentation - concretely for my modules this documents how some functions behave in edge cases -> hence spec instead of test. (The ChiSquared module uses a distribution table - so it is useful to define what happens when a value is not found in the table and so on …)