-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
Research feasibility of 100% test coverage #841
Comments
Starlette achieves this. https://github.com/encode/starlette |
Using https://pypi.org/project/pytest-cov/ and running
|
Added a
And ran again:
|
Added |
From digging through that report it looks like the majority stuff that isn't fully covered is corner-cases... which are the kind of things I really do want the tests to catch. I'm not entirely ready to commit to 100%, but I'm going to start digging through and seeing how close I can get. If I can get to 98% (I'm on 91% already) I may as well push all the way to 100. |
Looking at options for publishing coverage reports:
I'm going to try https://codecov.io/ |
I ran export CODECOV_TOKEN="f7935cad...", then ran this:
But https://codecov.io/github/simonw/datasette/commit/0e49842e227a0f1f69d48108c87d17fe0379e548 is a 404, so it doesn't seem to have worked? UPDATE: It works now, took about 30 seconds before the report showed up at that URL. |
Closing this because I've researched feasibility. I may start a milestone in the future to help me get to 100%. |
Inspired by https://twitter.com/mikeal/status/1271473021593636866
The text was updated successfully, but these errors were encountered: