RE: [Pyunit-interest] Run all tests in the current directory
Brought to you by:
purcell
From: Patrick K. O'B. <po...@or...> - 2002-03-15 00:08:35
|
> On Thu, 2002-03-14 at 15:23, Patrick K. O'Brien wrote: > > I have a tests directory containing a number of unittest test > modules and > > wanted an easy way to run every single test without having to > create suites > > in each module. Since I couldn't find anything like this in the docs, in > > anyone else's code, or on the Python Cookbook. > <snip/> > > FWIW, in the pybeep project (http://pybeep.sourceforge.net) we use a > similar script (CVSROOT/test/testall.py), liberally filched from Mark > Pilgrims most excellent Dive into Python > (http://diveintopython.org/regression_divein.html) > > Sean Allen I missed Mark's version when I was looking for something like this. Thanks for the link. And Mark's version puts mine to shame - his uses regular expressions, filter, lambda and map (three times, no less) to do the exact same thing. <0.5 wink> --- Patrick K. O'Brien Orbtech |