tox plugin to run arbitrary commands in a virtualenv
A tox plugin to run an arbitrary command in a tox managed virtualenv.
In the example tox will will run server --port 8080 inside of the py27 virualenv.
Almost all of the projects I work on use tox for test automation. Many of those projects, one such example is Keystone, carry custom Python and/or shell scripts to create virtualenvs to run server processes for manual testing. Other projects advise the developer to create a tox virtualenv by running tox -e py27 --notest and then running the server from within that virtualenv like .tox/py27/bin/server --port 8080.
Both of those options suck. Since I couldn’t find a tool that already existed to do this, I created one using the new tox plugin API.