django-nose 与默认的 Django 测试运行器有何不同
我看到并读到很多人使用鼻子来运行他们的 Django 测试。我还没能弄清楚使用 Nose 运行 Django 测试的额外好处。如果有人可以告诉我鼻子是什么以及它如何为 Django 项目添加更多内容,那将会很有帮助。
我还没有找到一个好的文件/文章来概述这些要点。
谢谢
I've been seeing and reading about a lot of people using nose to run their Django tests. I haven't been able to figure out the added benefits of using Nose to run my Django tests. If someone could fill me in on what nose is and how it adds more to a Django project, it would be helpful.
I haven't been able to find a good document/article outlining these points.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我对此也很好奇,似乎 django-nose 使用 python鼻子库的主要优点是“测试发现”。
此外,来自 http://readthedocs.org/docs/nose/en/latest /testing.html
根据我从 freenode irc 上的其他 python 开发人员那里了解到的情况,Twisted Framework 上的试用测试运行程序具有类似的功能,例如鼻子。
我仍然不完全相信使用 django-nose 进行 django 开发,但我会尝试一下,如果我发现更多信息,请报告回来!
I was curious about this too and it seems that the main advantage of django-nose using the python nose library is "Test Discovery".
In addition, from http://readthedocs.org/docs/nose/en/latest/testing.html
From what I understand from other python developers on freenode irc, Trial test runner on Twisted Framework have these similar features like nose.
I am still not entirely convinced about using django-nose for django development but am giving a shot and report back if I find out more!
总体而言,还有更多的功能,但我认为人们使用nose/djano_nose的一个主要原因是它允许您非常轻松地进行代码覆盖。
There are a lot more features overall, but I think one major reason people use nose/djano_nose is that it allows you to very easily do code coverage.