uwsgi flask gevent test code coverage (coverages)

table of Contents

possible problems

  1. Multi-process start
  2. gevent start
  3. The service may not stop running

solve

I would like to refer to this article for a moment the use of code coverage analysis Coverage WSGI project , he basically can solve two problems out of 1.2, the third question I used to stop the current process of coverage of an interface, the interface returns a current work_id process, so it can determine whether the process is terminated, and then coverage combineon the line

Welcome to my home page

Guess you like

Origin www.cnblogs.com/daryl-blog/p/11369563.html