[TIP] Coverage of application which doesn't end by itself

David Stanek dstanek at dstanek.com
Thu Jun 16 05:30:10 PDT 2016


On Wed, Jun 15, 2016 at 11:38 PM Li, Xiaoyan <xiaoyan.li at intel.com> wrote:

>
> Anyone kindly gives me any suggestions how to check code coverage like
> above test.py?
>
>
I've used the coverage API[1] in webapps to record coverage in very long
running processes. I would write coverage data when someone authenticated
against a /dump_coverage endpoint. This allowed me to run a series of tests
and then dump the coverage for those tests.

1. https://coverage.readthedocs.io/en/coverage-4.1/api.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20160616/d7733d95/attachment.html>


More information about the testing-in-python mailing list