[TIP] pytest-xprocess-0.7: manage external processes across test runs
holger at merlinux.eu
Fri Apr 5 12:14:16 PDT 2013
I've just released a first experimental version of pytest-xprocess,
version 0.7. It makes managing processes _across_ test runs easy.
If you have a mysql, postgres, redis, etc. database or any other
service that you like to start and initialize for your tests then
you can use the plugin to keep this process alive, or to kill it.
Moreover, any failing test will show the logfile lines that were
written during the execution of the test.
See https://pypi.python.org/pypi/pytest-xprocess/ for some more info.
I've used this pattern myself to manage a test couchdb instance
including basic initialization to avoid the overhead of starting
it for new test runs.
It works for my current usage but it's not very widely tested yet.
Consider it alpha.
More information about the testing-in-python