Getting coverage with dev_appserver.py excludes my project files

落爺英雄遲暮 提交于 2019-12-07 00:21:39

问题


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 coverage results I can see details for all files except the ones in my project. They show up as zero lines executed if I add --source=project. Trying --timid made no difference. I can see others doing the exact same thing - example 1 2 - implying this used to work.

I terminate coverage/dev_appserver by sending SIGINT, and do wait for it to exit. My suspicion is that the chicanery dev_appserver does to replicate the production environment (eg limiting modules, disabling binary modules, sort of chrooting) is breaking coverage.

来源:https://stackoverflow.com/questions/16785929/getting-coverage-with-dev-appserver-py-excludes-my-project-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!