0

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

4
  • Why try to exclude the data that is measured when you don't run a test case? Commented Jan 9, 2017 at 15:49
  • I tried this method,but some of files also need tested.So I only want to erase coverage data before run test case,How to do? Commented Jan 10, 2017 at 5:05
  • You haven't explained why you want to erase coverage data at all. Run your test, look at the lines that are run. Why erase any data? Commented Jan 10, 2017 at 9:50
  • Alright, I got it. Thanks,O(∩_∩)O~~ Commented Jan 11, 2017 at 2:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.