递归运行Django unittest
项目描述
========================================
``django-unittest-depth`` 运行 Django unittests 递归
========================================
:版本: 0.4
=======================================
概要
=======================================
我想要一个不同于默认的 $appname/tests.py 的测试目录布局,
所以我编写了这个测试套件设置,这样您就可以有如下的目录布局:
$appname/
tests/
__init__.py
test_models/
__init__.py
test_Blog.py
test_Author.py
test_Repository.py
test_views.py
等等。
要在您的Django应用程序中使用此功能,您只需将以下内容添加到您的
$appname/tests/__init__.py 模块中
>>> from djangox.test.depth import alltests
...
>>> def suite()
... return alltests(__file__, __name__)
======================================
安装
======================================
要安装
>>> python ./setup.py install
或通过 easy_install
>>> easy_install django-unittest-depth
``django-unittest-depth`` 运行 Django unittests 递归
========================================
:版本: 0.4
=======================================
概要
=======================================
我想要一个不同于默认的 $appname/tests.py 的测试目录布局,
所以我编写了这个测试套件设置,这样您就可以有如下的目录布局:
$appname/
tests/
__init__.py
test_models/
__init__.py
test_Blog.py
test_Author.py
test_Repository.py
test_views.py
等等。
要在您的Django应用程序中使用此功能,您只需将以下内容添加到您的
$appname/tests/__init__.py 模块中
>>> from djangox.test.depth import alltests
...
>>> def suite()
... return alltests(__file__, __name__)
======================================
安装
======================================
要安装
>>> python ./setup.py install
或通过 easy_install
>>> easy_install django-unittest-depth