Announcing Testido automatic unittest TestSuite generator

Aug 27, 2005 14:47 · 160 words · 1 minute read

For a project I’m working on, I didn’t want to introduce a dependency on py.test. I also didn’t want to manually write test suites myself. So, here’s Testido: a simple unittest extension that easily hooks in to however you’re testing now and eliminates the need to manually write suites.

Through the wonder of setuptools, Testido can be installed trivially with easy_install.

The simplest usage looks like this:

from setuptools import setup

Running “python testido” with that setup file will run all of the tests it can find in the “foo” package. Doesn’t get much easier than that, does it?

Alternatively, you can create a TestSuite that can be used by other tools like this:

from testido import collector
suite = collector.Collector("foo")

As I point out in the docs, Testido is not a full substitute for py.test or Testoob.

But, if you are using the stdlib’s unittest for whatever reason, it can make your life easier.