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 setup(name='foo', version='1.0', packages=['foo'], )
Running “python setup.py 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.