Skip to main content

This is a tool for converting coverage.json to image.

Project description

CoverageToImg

Introduction

To convert from coverage.json - that is made by coverage library of pypi - to image

  • Example of structure of coverage.json
{
    "meta": {
        "version": "6.0.2",
        "timestamp": "2021-10-15T10:56:02.804556",
        "branch_coverage": false,
        "show_contexts": false
    }
    "files": {
        "path/file_name.py": {
            "executed_lines": [],
            "summary": {
                "covered_lines": 0,
                "num_statements": 0,
                "percent_covered": 100.0,
                "percent_covered_display": "100",
                "missing_lines": 0,
                "excluded_lines": 0
            },
            "missing_lines": [],
            "excluded_lines": []
        },
        ...
    }
    "totals": {
        "covered_lines": 100,
        "num_statements": 200,
        "percent_covered": 80.0,
        "percent_covered_display": "80",
        "missing_lines": 19,
        "excluded_lines": 1,
    }
}

Example

  • coverage.json -> png
coverage2img -i coverage.json -o result.png

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coverage2img-0.0.1rc2.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

coverage2img-0.0.1rc2-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page