为coverage.py生成coverage徽章。
coverage-badge的Python项目详细描述
使用coverage.py生成覆盖徽章的小脚本。生成的徽章示例:
徽章模板来自shields.io,因此它应该看起来 基本上不错。(规格在边距上要严格一点,但我不容易做到 python中的文本宽度计算,因此页边距可能不总是4px。)
用法
首先,运行coverage.py以生成必要的覆盖率数据。那你就可以 将徽标SVG返回标准输出:
$ coverage-badge
…或将其写入文件:
$ coverage-badge -o coverage.svg
从 .coverage数据文件已找到。
封面颜色不同:
-
完整用法文本:
usage: __main__.py [-h] [-o FILEPATH] [-p] [-f] [-q] [-v] Generate coverage badges for Coverage.py. optional arguments: -h, --help show this help message and exit -o FILEPATH Save the file to the specified path. -p Plain color mode. Standard green badge. -f Force overwrite image, use with -o key. -q Don't output any non-error messages. -v Show version.
许可证
麻省理工学院许可证,请参见license.txt文件..