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

setup.cfg: Enforce 100% branch coverage #283

Merged
merged 7 commits into from
Aug 4, 2018
Merged

Conversation

jayvdb
Copy link
Member

@jayvdb jayvdb commented Aug 4, 2018

Closes #282

Two test classes are renamed to match the coala
naming convention.

However as the repository does not have 100% coverage
fail_under = 100 is omitted manually
A TypeError was being raised if a class attribute with a default
had been set to a falsish value.  While possible, it is very
improbable, and other errors will result.
Creates a list of coverage exceptions in .nocover.yaml
which are used in setup.cfg by coverage to ignore them
while ensuring any other parts of the code are fully
tested.

Also rename one function so its signature is on one line
as required for coverage to ignore the entire function.

Closes coala#282
@TravisBuddy
Copy link

Travis tests have failed

Hey @jayvdb,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

jobs:
include:
- *check_moban

Copy link
Member

Choose a reason for hiding this comment

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

  allow_failures:
    - *check_moban

?

Copy link
Member Author

@jayvdb jayvdb Aug 4, 2018

Choose a reason for hiding this comment

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

No ;-)

That is only done on coala & coala-bears as we have lots of eyes on those two repos, and those two repos see enhancements first (like pytest-reqs is only working on coala core repo atm)

These other repos will not be maintained unless moban forces them to sync.

@jayvdb
Copy link
Member Author

jayvdb commented Aug 4, 2018

@jayvdb
Copy link
Member Author

jayvdb commented Aug 4, 2018

@gitmate-bot ff

@gitmate-bot
Copy link

Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently ⚠️

@gitmate-bot gitmate-bot merged commit 7fef0b0 into coala:master Aug 4, 2018
@gitmate-bot
Copy link

Automated fastforward with GitMate.io was successful! 🎉

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

Successfully merging this pull request may close these issues.

6 participants