|
From: Lalo M. <la...@ha...> - 2002-01-11 18:18:59
|
On Fri, Jan 11, 2002 at 04:29:34PM +0200, Albertas Agejevas wrote:
> Hey,
>
> Admit it: the default TestRunner is dull. It's inconvenient as well
> if you want to see what actually failed.
Yes. We planned to design a better interface sometime.
> Attached is a patch adding funcionality of unittest.TextTestRunner's
> verbosity=2. It makes TestRunner recognize a "verbosity" property,
> and if it equals 2, give nice colourised output with test cases'
> docstrings, OK/FAIL/ERROR results and full backtraces. Makes running
> unit tests a joy!
Sounds nice.
However, Leo's design was that TestRunner would acquire an
interface from the ZODB in good Zope tradition. Do you disagree
to this approach?
In case you agree, we may find the correct API for that and
adapt your patch.
Otherwise, perhaps you could add the verbosity variable to the
default list of properties.
Even better would be to add a "selection" property with more
descriptive names.
Anyway, I'll examine your patch in the next few days, if Leo
doesn't do it first.
As neither of us is devoting too much time to ZUnit right now
(for reasons of job priorities mostly), perhaps you'd like to
have CVS write access? In good Wiki tradition, CVS is a
wonderful thing because if we don't like your patch, we can
revoke it ;-)
[]s,
|alo
+----
--
It doesn't bother me that people say things like
"you'll never get anywhere with this attitude".
In a few decades, it will make a good paragraph
in my biography. You know, for a laugh.
--
http://www.laranja.org/ mailto:la...@la...
pgp key: http://www.laranja.org/pessoal/pgp
Brazil of Darkness (RPG) --- http://www.BroDar.org/
|