[TIP] Testify
holger krekel
holger at merlinux.eu
Sat Oct 30 23:41:37 PDT 2010
On Sun, Oct 31, 2010 at 15:15 +1300, Robert Collins wrote:
> On Sun, Oct 31, 2010 at 2:20 AM, Marius Gedminas <marius at gedmin.as> wrote:
> > But it would be nice to be able to switch test _runners_ and get all
> > those nice features (different output formats, colorization,
> > parallelization, test selection) for your existing test suites, no
> > matter which framework these used.
>
> I'd like to make all runners be the same five lines:
> result.startTestRun()
> try:
> suite.run(result)
> finally:
> result.stopTestRun()
>
> The real interesting stuff is in creating suite (for parallelisation)
> and result (for colourisations, xml output, streaming to another
> server etc).
How would sharing the above lines help anything?
Rephrasing Marius goal, *the actual tests* should be runnable
from different test tools. If we as test tool maintainers share
some code because it makes things easier for us, is a different
and somewhat orthogonal matter.
cheers,
holger
More information about the testing-in-python
mailing list