自体测试蟒单位测试模块
pyautotest的Python项目详细描述
这是一个在开发期间提供连续测试的实用程序。它监视源文件和测试文件中的更改,并在检测到更改时运行测试套件。
此外,pyautotest还支持在mac os x上使用notification center和linux上的libnotify发布通知。
安装
pip:
pip install pyautotest
来源:
python setup.py install
如何使用
创建了一个可以在python项目的根目录下运行的实用程序。它将使用unittest的discover特性来查找测试。它将递归地监视当前目录中的任何*.py文件:
usage: autotest [-h] [-l L] Continuously run unit tests when changes detected optional arguments: -h, --help show this help message and exit -l L, --log-level L set logger level
也可以使用以下命令直接从python运行:
python -m pyautotest.cli
依赖关系
必需:
可选: