Skip to content

feat: add json summary report #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 30, 2020
Merged

feat: add json summary report #220

merged 3 commits into from
Apr 30, 2020

Conversation

bahmutov
Copy link
Contributor

which generates report in coverage/coverage-summary.json like

{
    "total": {
        "lines": {
            "total": 3,
            "covered": 3,
            "skipped": 0,
            "pct": 100
        },
        "statements": {
            "total": 3,
            "covered": 3,
            "skipped": 0,
            "pct": 100
        },
        "functions": {
            "total": 1,
            "covered": 1,
            "skipped": 0,
            "pct": 100
        },
        "branches": {
            "total": 0,
            "covered": 0,
            "skipped": 0,
            "pct": 100
        }
    },
    "/Users/gleb/git/instrument-example/src/App.js": {
        "lines": {
            "total": 1,
            "covered": 1,
            "skipped": 0,
            "pct": 100
        },
        "functions": {
            "total": 1,
            "covered": 1,
            "skipped": 0,
            "pct": 100
        },
        "statements": {
            "total": 1,
            "covered": 1,
            "skipped": 0,
            "pct": 100
        },
        "branches": {
            "total": 0,
            "covered": 0,
            "skipped": 0,
            "pct": 100
        }
    },
    "/Users/gleb/git/instrument-example/src/index.js": {
        "lines": {
            "total": 2,
            "covered": 2,
            "skipped": 0,
            "pct": 100
        },
        "functions": {
            "total": 0,
            "covered": 0,
            "skipped": 0,
            "pct": 100
        },
        "statements": {
            "total": 2,
            "covered": 2,
            "skipped": 0,
            "pct": 100
        },
        "branches": {
            "total": 0,
            "covered": 0,
            "skipped": 0,
            "pct": 100
        }
    }
}

@bahmutov bahmutov merged commit 645126a into master Apr 30, 2020
@bahmutov
Copy link
Contributor Author

🎉 This PR is included in version 3.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@emilyrohrbough emilyrohrbough deleted the add-json-summary-report branch March 22, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant