-
-
Notifications
You must be signed in to change notification settings - Fork 199
Description
When reviewing #393 I realized I wish that we could test that multiple signatures would be accepted by the test suite. But of course we have to pick a certain signature in our example file... or do we?
What about a crazy idea - what if we supported having multiple example files?
This is already supported on x-api - any file that has example in its name will be excluded, so we could have Example2.hs
, Example3.hs
, etc.
Then we would have to make our .travis.yml
support it in a reasonable way.
The idea is that Travis CI would test each example file individually (separately from the other examples) and makes sure that the test suite passes for each.
Potential use cases I can think of:
- Verify that the
anagram
test suite can accept multiple signatures. - (If we also have a way to specify that a certain example should fail the test suite) We can test the quality of our test suite, making sure that it catches various cases we want it to catch. In
accumulate
, we have an inefficient example noted at https://github.com/exercism/xhaskell/blob/master/exercises/accumulate/src/Example.hs#L15 and we say that it should fail the test suite. But this was never automatically verified and indeed for the longest time that example did not even compile until accumulate: fix inefficient example #209
However, I hope that this doesn't make our tests take too long to run.
Is this idea worth it? Should I try it out to see what happens?