[英]After running unittests, I want to see all the requests Django has processed
My Django project has ~300 unit tests. 我的Django项目有约300个单元测试。 I want to see all the URLs (and HTTP methods - GET/POST/etc) that have been used in the course of unit testing. 我想查看在单元测试过程中使用的所有URL(和HTTP方法-GET / POST / etc)。
The end goal is to produce two (nose) coverage reports: 最终目标是生成两个(鼻子)覆盖率报告:
Before I go digging into the Django source code, I'm wondering if anyone knows if this is already done for free by some Django object, or if not, a good hint at where to start prodding around. 在深入研究Django源代码之前,我想知道是否有人知道某个Django对象是否已免费完成此操作,或者如果不是,那么这是一个很好的提示,说明从何处开始。
Have a look at django-request . 看看django-request 。 Maybe it can solve your problem. 也许它可以解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.