Skip to content

Gracefully handle empty coverage.json#67

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

Gracefully handle empty coverage.json#67
johannes-mueller wants to merge 2 commits intoAdamNiederer: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.

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.

1 participant