Status badge for coverage

Gitlab has the ability to parse coverage result out of any coverage (suite) report dumped to stdout with a user-provided regex. So you can get a shiny coverage status badge.

It’d be nice for CircleCI to support the same for those of us who don’t rely in any SaaS for coverage measurement.

In my case I’m using Python’s popular Coverage.py where you can have the following parsed from the CLI output.

moto/insurance/views.py            42      0      4      0   100%
moto/policy/admin.py                0      0      0      0   100%
moto/policy/apps.py                 3      0      0      0   100%
moto/policy/enums.py               24      0      0      0   100%
moto/policy/management.py          42      0      6      0   100%
moto/policy/models.py              34      0      0      0   100%
moto/ride/admin.py                  0      0      0      0   100%
moto/ride/apps.py                   3      0      0      0   100%
moto/ride/models.py                 0      0      0      0   100%
moto/utils/exceptions.py           87      2     48      2    97%
moto/utils/http.py                 27      0      4      0   100%
moto/utils/logging.py              13      0      2      1    93%
moto/utils/settings.py              5      0      0      0   100%
-----------------------------------------------------------------
TOTAL                            1043      2    180      4    99%