Skip to content
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

Don't assert on empty directories. #144

Merged
merged 2 commits into from
Jul 1, 2019

Conversation

rillian
Copy link
Contributor

@rillian rillian commented Jun 3, 2019

When run on a directory with no cts data at all, the report
generator for hooktest --console would throw a StatisticsError
trying to calculate the mean coverage over zero files. Check
for this condition and report zero coverage instead.

Add a test for this condition, invoking hooktest on the included
emptyDir fixture.

When run on a directory with no cts data at all, the report
generator for `hooktest --console` would throw a StatisticsError
trying to calculate the mean coverage over zero files. Check
for this condition and report zero coverage instead.

Add a test for this condition, invoking hooktest on the included
emptydir fixture.
@coveralls
Copy link

coveralls commented Jun 3, 2019

Coverage Status

Coverage increased (+0.01%) to 95.71% when pulling f5ae4aa on rillian:emptydir into 6f46fa7 on Capitains:master.

@PonteIneptique PonteIneptique merged commit 0124001 into Capitains:master Jul 1, 2019
@PonteIneptique
Copy link
Member

That's definitely a change that was needed ! Thanks ;)

@rillian rillian deleted the emptydir branch July 1, 2019 16:45
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.

3 participants