
I am in love with HUnit and QuickCheck. However, I am missing one important functionality I want to call a command line program that will search all the .hs files I have in a particular directory, pull out all HUnit test (based on what they are called, or perhaps their type signature) and run them all. I have done a bit of a search and can't find anything like this, am I going to have to write it myself? Matt

Matt Roberts
I am in love with HUnit and QuickCheck. However, I am missing one important functionality
I want to call a command line program that will search all the .hs files I have in a particular directory, pull out all HUnit test (based on what they are called, or perhaps their type signature) and run them all.
You could use the Haskell testing framework (http://www.informatik.uni-freiburg.de/~wehr/haskell/). It's not really polished (e.g., there is no documentation) but it should do the job. Stefa

Matt Roberts
I am in love with HUnit and QuickCheck. However, I am missing one important functionality
I'm rather fond of them also. Check my prototype of test-driven-development for QuickCheck: http://www.scannedinavian.com/~shae/qc-tdd.tgz
I want to call a command line program that will search all the .hs files I have in a particular directory, pull out all HUnit test (based on what they are called, or perhaps their type signature) and run them all.
Look at the quickcheck script by John Hughes, it searches for 'prop_' tests and executes them. You can likely add 'unit_' to that without much trouble. -- I've tried to teach people autodidactism, | ScannedInAvian.com but it seems they always have to learn it for themselves.| Shae Matijs Erisson
participants (3)
-
Matt Roberts
-
Shae Matijs Erisson
-
Stefan Wehr