简体   繁体   English

django-nose collect-only运行测试

[英]django-nose collect-only runs tests

Nose and django-nose installed, when the following is ran: 运行Nose和django-nose时,运行以下命令:

./manage.py test --collect-only

The following is output: 输出如下:

nosetests --collect-only --verbosity=1
Creating test database for alias 'default'...
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
Destroying test database for alias 'default'...

Why is collect-only running the tests instead of outputting their names? 为什么只collect-only运行测试而不是输出他们的名字?

Increasing the verbosity seems to produce desired results: 增加详细程度似乎产生了预期的结果:

./manage.py test --collect-only --verbosity=2 ./manage.py test --collect-only --verbosity = 2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM