python running coverage on never ending process
问题 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). The problem is, that since the processes never end, I don't have a good place to set the cov.start() cov.stop() cov.save() hooks. Therefore, I thought about spawning a thread that in an infinite loop will save and combine the coverage data and then sleep some time, however this approach doesn't work, the coverage report