从Circleci项目中获取片状测试的列表。
circleci-flak的Python项目详细描述
圆形片状
从Circleci项目获取片状测试列表的命令行实用程序。
功能
Circleci为您的工作流提供了一个“洞察”部分,但它限制了数据的回溯距离。circleci-flaky
允许您指定多达100个以前失败的生成来检查重复的失败测试。它默认检查主分支并显示所有失败的测试,但这两个都可以自定义。
$ circleci-flaky -h usage: circleci-flaky [-h][--branch BRANCH][--builds N][--top N] project Check a CircleCI project for flaky tests positional arguments: project the project to check optional arguments: -h, --help show this help message and exit --branch BRANCH branch to check for failures (default: master) --builds N number of failed builds to check (default: 30) --top N limit results to the top N (default: all)
安装
您可以通过PyPI中的pip安装circleci-flaky
。
# If you run both Python 2 and 3 on your system, use pip3 sudo pip3 install circleci-flaky # If you only run Python 3, you can just use pip sudo pip install circleci-flaky
用法
因为这个工具利用了circleci api,所以您需要一个个人api令牌。 导航到https://circleci.com/account/api并创建一个新令牌(请注意 向下)。
像这样运行命令:
CIRCLECI_TOKEN=your_token circleci-flaky org/repo
如果要在终端中保留令牌多次运行,请将其导出:
exportCIRCLECI_TOKEN=your_token
然后在不指定标记的情况下运行命令:
circleci-flaky org/repo
贡献
欢迎投稿!
许可证
根据MIT许可证的条款发布,circleci-flaky
是免费的开源软件。
问题
如果您遇到任何问题,请file an issue连同详细说明。