命运测试套件
etaf-testsuite的Python项目详细描述
一个运行FATE测试套件的有用脚本。在
快速入门
(可选)创建虚拟环境
python -m venv venv source venv/bin/activate
在安装fate_testsuite
^{pr2}$ 在新建并编辑测试套件_配置.yaml在
# create a testsuite_config.yaml in current dir testsuite config new # edit priority config file with system default editor # filling some field according to comments testsuite config edit
在运行一些测试套件
testsuite suite -i <path contains *testsuite.json>
在有用的日志或异常将被保存到logs dir,名称空间如上一步所示
在
测试套件_配置.yaml示例
在单个节点部署多个流服务:ip:port,并在不同节点运行testsuite:
- 第9999组,端口9380
- 方10000,港口9381
填写ssh_tunnel并注释本地服务
ssh_tunnel:-address:ip:port-services:-address:127.0.0.1:9380parties:[9999]-address:127.0.0.1:9381parties:[10000]
在在单个节点中部署多个流服务:ip:port,并在同一节点上运行testsuite:
- 第9999组,端口9380
- 方10000,港口9381
填充本地服务和commnets outssh_隧道
local_services:# flow services in local-address:127.0.0.1:9380parties:[9999]-address:127.0.0.1:9381parties:[10000]
在
命令选项
排除:
testsuite suite -i <path1 contains *testsuite.json> -e <path2 to exclude> -e <path3 to exclude> ...
将在path1中运行testsuites,但不在path2和path3中运行
在替换:
testsuite suite -i <path1 contains *testsuite.json> -r '{"maxIter": 5}'
将在data conf或conf或dsl中找到所有键“maxIter”的键值对,并将该值替换为5
在
- 项目
标签: