python running coverage on never ending process

前端 未结 3 662
夕颜
夕颜 2021-02-05 09:01

I have a multi processed web server with processes that never end, I would like to check my code coverage on the whole project in a live environment (not only from tests).

3条回答
  •  眼角桃花
    2021-02-05 09:39

    Since you are willing to run your code differently for the test, why not add a way to end the process for the test? That seems like it will be simpler than trying to hack coverage.

提交回复
热议问题