[TIP] Problems with coverage.py + Django + FastCGI
armooo at armooo.net
Mon Mar 10 16:55:58 PDT 2014
It looks like manage.py runfcgi defaults to using a pre-forking mode
where a pool of processes handle the requests. By default coverage is
only able to install its trace function in the main process. Also the
threaded mode of flup uses the low level thread module which coverage
also can not track. Directions for tracking subprocess coverage are
here http://nedbatchelder.com/code/coverage/subprocess.html .
On Mon, Mar 10, 2014 at 3:50 PM, David Wyde <david.wyde at gmail.com> wrote:
> I can't seem to get coverage.py to work with Django + FastCGI (manage.py
> runfcgi). The alternative `coverage run manage.py runserver --noreload`
> A sample project is available at https://github.com/dwyde/cover_django -
> please see the README for full details.
> Any ideas?
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
More information about the testing-in-python