zVi*_*tor 9 django django-testing
我想在每次测试失败时启动ipdb.我试过了
$ ipython manage.py test myapp --pdb
Run Code Online (Sandbox Code Playgroud)
但不起作用.
Gri*_*ees 10
如果您pip install ipdbplugin和pip install django-nose,然后添加django_nose到您的INSTALLED_APPS设置TEST_RUNNER = 'django_nose.NoseTestSuiteRunner',您可以调用:
./manage.py test --ipdb
Run Code Online (Sandbox Code Playgroud)
要么
./manage.py test --ipdb-failures
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请参阅https://github.com/flavioamieiro/nose-ipdb和https://github.com/django-nose/django-nose.
| 归档时间: |
|
| 查看次数: |
2319 次 |
| 最近记录: |