Skip to content

Improve Travis / tox setup + coverage #851

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

Merged
merged 5 commits into from
Oct 10, 2017

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Sep 19, 2017

Mainly inspired by using pytest directly in tox, for easy test selection
etc.

Mainly inspired by using pytest directly in tox, for easy test selection
etc.
@blueyed blueyed changed the title Improve Travis / tox setup Improve Travis / tox setup + coverage Sep 26, 2017
@blueyed
Copy link
Contributor Author

blueyed commented Sep 26, 2017

Added coverage reports via codecov, which can be seen at https://codecov.io/gh/pallets/click/branch/improve-travis-tox.

This hopefully works around `complex/complex/commands/__init__.py` and
`termui/termui.py` showing up in `examples` (at the root).
@blueyed
Copy link
Contributor Author

blueyed commented Sep 28, 2017

@untitaker @axu2
Can you take a look, please?

@blueyed
Copy link
Contributor Author

blueyed commented Sep 28, 2017

Also please authorize/install codecov on https://codecov.io/gh/pallets/click/.

@untitaker
Copy link
Contributor

untitaker commented Oct 1, 2017 via email

@blueyed
Copy link
Contributor Author

blueyed commented Oct 6, 2017

@untitaker
What do you mean by "extremely buggy"?
What I am seeing sometimes is multiple comments, also only one should be there and edited.

maintenance effort

Do you mean that you have or want to delete the duplicated comments then?

If this is the issue you mean it might be solvalble by @codecov just fixing it in the end.. ;)

From my point of view codecov provides a lot of valuable insights.

@ThiefMaster
Copy link
Member

IMO even just a single codecov comment on every PR is somewhat annoying. I like getting notifications from GitHub for new PRs and comments since that's convenient to see if there's anything to comment on, a PR to review, etc. But codecov comments? I'm tempted to overcome my laziness and configure my email filter to send the notifications about them straight to the trash folder. But that aside, IMO these comments are more noise than adding useful comment.

@blueyed
Copy link
Contributor Author

blueyed commented Oct 6, 2017

@ThiefMaster
The recommended way is to install codecov's GitHub integration, where you would not see comments in your emails (AFAIK): https://github.com/integration/codecov.
Anyone with admin rights here could try it already.

Otherwise you could also just block the bot user (https://github.com/codecov-io), and be done with it I guess.

@blueyed
Copy link
Contributor Author

blueyed commented Oct 6, 2017

Especially for PRs codecov's reporting is valuable, since it will tell you if coverage drops and if the diff is covered etc.

@untitaker
Copy link
Contributor

untitaker commented Oct 6, 2017 via email

@blueyed
Copy link
Contributor Author

blueyed commented Oct 6, 2017

@untitaker
It is still the best service for it, isn't it? coveralls is much worse and there is no other.

@untitaker
Copy link
Contributor

untitaker commented Oct 6, 2017 via email

@blueyed
Copy link
Contributor Author

blueyed commented Oct 6, 2017

What about the benefit to see if a PR covers its diff?

@blueyed
Copy link
Contributor Author

blueyed commented Oct 6, 2017

And even in general, I think you can grasp a lot of useful info from https://codecov.io/gh/pallets/click/tree/improve-travis-tox/click already.

@untitaker
Copy link
Contributor

untitaker commented Oct 6, 2017 via email

@untitaker
Copy link
Contributor

untitaker commented Oct 6, 2017 via email

@blueyed
Copy link
Contributor Author

blueyed commented Oct 6, 2017

@untitaker
Thanks.

@blueyed
Copy link
Contributor Author

blueyed commented Oct 6, 2017

btw: it might be better to use pytest-cov here, since it would also track subprocess automatically - not sure if that is used in tests?!

@untitaker untitaker merged commit b471d34 into pallets:master Oct 10, 2017
@untitaker
Copy link
Contributor

Thanks! Codecov seems to be already activated.

@blueyed blueyed deleted the improve-travis-tox branch October 10, 2017 22:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants