万能的实验者。
theape的Python项目详细描述
全能实验者是一个基于插件的系统,旨在为不同的设备相关测试创建一个统一的前端。
安装
如果您有存储库,可以使用setup.py文件安装它。
python setup.py install
或者你也可以从pypi中提取它。
pip install theape
如果要在系统范围内安装,则可能需要在this和其他安装命令前面加上sudo。
文档
猿有一些在线帮助。
ape -h
APE (the all-purpose-evaluator) Usage: ape -h | -v ape [--debug|--silent] [--pudb|--pdb] <command> [<argument>...] ape [--debug|--silent] [--trace|--callgraph] <command> [<argument>...] Help Options: -h, --help Display this help message and quit. -v, --version Display the version number and quit. Logging Options: --debug Set logging level to DEBUG. --silent Set logging level to ERROR. Debugging Options: --pudb Enable the `pudb` debugger (if installed) --pdb Enable the `pdb` (python's default) debugger --trace Enable code-tracing --callgraph Create a call-graph of for the code Positional Arguments: <command> The name of a sub-command (see below) <argument>... One or more options or arguments for the sub-command Available Sub-Commands: run Run a plugin fetch Fetch a sample configuration-file help Display more help list List known plugins check Check a configuration To get help for a sub-command pass `-h` as the argument. e.g.: ape run -h
安装测试依赖项
目前正在使用behave对ape进行测试,因此如果要运行测试,则需要使用pyhamcrest和mock。这三个都在pypi上,因此如果安装了pip,就可以从web上安装它们(如果安装的是以根用户身份运行的系统范围)。
pip install behave pip install pyhamcrest pip install mock