[HUnit-users] automatic suite statements?
Status: Beta
Brought to you by:
dherington
|
From: Shae M. E. <sh...@Sc...> - 2002-07-27 19:32:44
|
In PyUnit, I'm used to using:
def suite():
return unittest.makeSuite(TaskTestCase,'check')
if __name__ == '__main__':
unittest.main(defaultTest="suite")
that checks to see if this is running at the top level,
picks up all the functions that start with "check",
slurps them together into a suite,
and executes them.
Is there some way to do that with HUnit?
so far I've got:
bananaCodecTestList = [labeledTestStringCodec, <insert many tests here>]
t = runTestTT bananaCodecTestList
So that I can hit C-c C-l in Test_Banana.hs, and then "t" and enter to run all
of the tests.
That makes it easier to run my tests every minute or so, is there anything
I can do to make that simpler and easier?
thanks,
--
Shae Matijs Erisson - http://www.webwitches.com/~shae/
<radix> shapr: I think you *are* a purist :)
<radix> shapr: it's just that you're morally against unstable software, instead
of morally against MS, or non-free software, or whatnot.
|