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

Improve code coverage #31

Open
JonnyHaystack opened this issue Oct 2, 2019 · 0 comments
Open

Improve code coverage #31

JonnyHaystack opened this issue Oct 2, 2019 · 0 comments

Comments

@JonnyHaystack
Copy link
Owner

JonnyHaystack commented Oct 2, 2019

I need to add some more unit tests and get better coverage because right now it is really low (48%). It would be nice to get it to 70-80%.

Right now the problem is that a lot of the code isn't really testable because it's been left in the Click command methods. Most of this logic could be extracted out into more testable functions.

The module organisation also probably needs rethinking, because more and more stuff just ends up being dumped in the "util" module.

Note that most things which are not covered by unit tests are still covered by my tox tests, so overall the coverage is not as bad as it looks.

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

No branches or pull requests

1 participant