Getting coverage with dev_appserver.py excludes my project files

I run the following with Coverage 3.6 , Appengine 1.8.0, Python 2.7.4 on 64-bit Ubuntu 13.04:

coverage run dev_appserver.py project 

When I look at the coverage results, I can see the details for all files except those in my project. They appear as null strings if I add --source=project . The --timid attempt --timid not make any difference. I see others doing the same thing - example 1 2 - implying that it was used for work.

I finish coverage of / dev _appserver by sending SIGINT and waiting for it to exit. My suspicion is that chicanery dev_appserver is doing replication of the production environment (e.g. restricting modules, disabling binary modules, type chrooting) - this is a violation of coverage.

+6
source share

Source: https://habr.com/ru/post/945989/


All Articles