[TIP] Unittest framework with good process isolation

Jonathan Hunt hunt at braincorporation.com
Fri Aug 3 14:31:20 PDT 2012


Hi,

We have written our tests using the built-in python unittest framework and
we currently use nosetest to collect, run and report the tests.

Things we like about nose:

   - uses standard python unit tests (we like the structure this imposes).
   - supports reporting coverage and test output in xml (for jenkins).

What we are missing is a good way to run tests in isolated processes while
maintaining good error repoorting (we are testing C++ libraries through
python so segfaults should not be catastrophic and each unittest is
designed to run in isolation). nosepipe seems to be no longer maintained
and we have some problems with it.

We are trying to figure out whether we should - fix/use nosepipe - switch
to nose2 and write nosepipe2. - use pytest or some other testing framework.

We would prefer to use an approach with a good community. It seems our
problem (C++ plugins requiring good isolation) might be a common problem
but googling I have not found solutions that are maintained. Advice from
more experienced heads appreciated.
Regards,
Jonny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20120803/ebce8eee/attachment.htm>


More information about the testing-in-python mailing list