ku-fpg / hermit-shell

HERMIT with GHCi shell
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Basic testing framework #13

Closed RyanGlScott closed 9 years ago

RyanGlScott commented 9 years ago

Here's what I've managed to cobble together for a testing framework. This simply calls hermit-shell on each example and sees if it runs to completion. To run the tests, type

cabal test --show-details=streaming

The --show-details=streaming bit is optional, but it shows you the results of each test as it's running, which is nice.

You can filter which tests get run by searching against a pattern. For example:

cabal test --show-details=streaming --test-options="-p concatVanishes"

Current limitations:

andygill commented 9 years ago

Is there a reason why we can't just pull this? It looks reasonable to me.