How to erase coverage data before run test case?

493 views Asked by At

I use coverage API in WSGI project. When I not run test case,the coverage report reach 30%. So, I want to erase coverage data before run test case and also after start up WSGI project.

I set a socket port in control.py start(). After run start command gunicorn -c guniconf.py --env myapp.wsgi, I send 6300 port "clean".But I couldn't remove the in-memory data collected.

enter image description here

0

There are 0 answers