运行命令直到失败
py-loop的Python项目详细描述
[![许可证](https://img.shields.io/github/license/jeremad/looper.svg)](https://opensource.org/licenses/MIT) [![构建](https://img.shields.io/travis/jeremad/looper/master.svg)](https://travis-ci.org/jeremad/looper)
#循环运行命令的基本工具
这个工具的目的是帮助像我这样的qa人员进行片状测试,购买或者测量测试的“片状”,或者运行它直到调试失败。
##用法
假设您的测试命令是run test
###调试
你想运行一个测试直到它调试失败,你知道它可能需要一段时间: ` $ looper --max-tries 0 --stop-on-first-fail "run test" `
max尝试到0,意味着测试可以成功运行的次数没有限制
###测量
你想大致测试出1000次跑的失败率:
` $ looper --max-tries 1000 "run test" `
最后您将得到一个sumary
##安装
pip安装–用户py循环