如何知道django应用的覆盖范围? [英] How to know the coverage for the django application ?
问题描述
NAME ----->(我的项目中的一些文件)
STMS ----->(一些数字)
MISS ----->(一些数字)
COVER ----->(some%)
在我的情况下,它将显示一些结果,仅显示我的项目中的一些文件名它没有显示我的项目的所有文件的覆盖率。我如何使它显示所有我的文件名????
请建议任何更好的工作覆盖工具,如果你知道!
我只是这样工作:
coverage run --source = app1,app2 ./manage.py test --settings = path.to.test_settings app1,app2
我不要以为这是想要的方法,因为我们根本不使用./manage.py test_coverage命令,但我找不到任何其他方式。
I am having a simple django project that contains some applications.Everything works well.Now how do i check code coverage for my project.I have installed coverge-3.5 tool and just tried to know coverage by typing "coverage report" from terminal..It shows some result like
NAME -----> (some file in my project)
STMS -----> (some number)
MISS -----> (some number)
COVER -----> (some %)
In my case,it will display some result that shows only some of the file names from my project.It didnt shows coverage for all files from my project.How do i make it to show all my file name ????
please suggest any better working coverage tool if you know !
I just got it working like this:
coverage run --source=app1,app2 ./manage.py test --settings=path.to.test_settings app1,app2
I don't think that this is the intended way to do it since we don't use the ./manage.py test_coverage command at all, but I couldn't find any other way.
这篇关于如何知道django应用的覆盖范围?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!