Skip to content

Gracefully handle empty coverage.json#67

Open
johannes-mueller wants to merge 2 commits into
AdamNiederer:masterfrom
johannes-mueller:empty-coverage-json
Open

Gracefully handle empty coverage.json#67
johannes-mueller wants to merge 2 commits into
AdamNiederer:masterfrom
johannes-mueller:empty-coverage-json

Conversation

@johannes-mueller
Copy link
Copy Markdown

When using pytest with coverage.json it happens with every pytest run that the coverage source file coverage.json for a split of a second is empty. That leads to annoying errors, each time a pytest session is performed as cov-watch-callback is quick enough to catch the empty coverage.json.

This PR addresses the issue by handling an empty coverage.json gracefully.

Copy link
Copy Markdown
Contributor

@snogge snogge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants