django autotest是自动运行测试套件的命令
django_autotest的Python项目详细描述
django自动测试
django autotest是应用程序的自定义命令 在保存测试文件并显示 带有结果的桌面通知。
安装
一。使用pip install django_autotest安装包,或者您也可以 下载tarball并运行python setup.py install
- 将autotest添加到settings.py中的已安装应用列表中
INSTALLED_APPS = ('autotest')
- 使用django应用程序的绝对路径将project_根变量添加到settings.py。
from os.path import abspath, dirname PROJECT_ROOT = abspath(dirname(__file__)) # or if you have already defined that for another purposes ( templates for example ) PROJECT_ROOT = MY_PROJECT_ROOT_DIRECTORY
用法
附加说明
要求
Django 1.2+
看门狗
对于通知:
libnotify(Linux) 咆哮(Windows和Mac)