-
Notifications
You must be signed in to change notification settings - Fork 724
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
Code Coverage update #1022
Code Coverage update #1022
Conversation
db92ee4
to
4e08b71
Compare
4e08b71
to
33109f0
Compare
This change adds or update a swath of tests to push method code coverage numbers up. Yes, method coverage is not super meaningful, but it is one metric that we can use to ensure at least minimal coverage of this library. Almost no product changes in here.
33109f0
to
35c8cfa
Compare
<!-- Only fail code coverage on non-windows machines --> | ||
<jacoco.haltOnFailure>true</jacoco.haltOnFailure> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than exclude some classes from measurement due to tests not running on windows, don't run coverage on windows.
|
||
GitHub getRoot() { | ||
return root; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this internal method for tests to use, in preparation changing root
to private.
@@ -192,8 +205,7 @@ public GHPullRequestReviewComment reply(String body) throws IOException { | |||
return owner.root.createRequest() | |||
.method("POST") | |||
.with("body", body) | |||
.with("in_reply_to", getId()) | |||
.withUrlPath(getApiRoute() + "/comments") | |||
.withUrlPath(getApiRoute(true) + "/replies") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only real product change. Bug fixed!
Description
Trying to raise the minimum bar for coverage to 50%
Before submitting a PR:
We love getting PRs, but we hate asking people for the same basic changes every time.
master
. Create your PR from that branch.mvn clean compile
locally. This may reformat your code, commit those changes.mvn -D enable-ci clean install site
locally. If this command doesn't succeed, your change will not pass CI.When creating a PR: