-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Increase test coverage on Jib Builder #2383
Conversation
Codecov Report
|
Signed-off-by: David Gageot <[email protected]>
{ | ||
description: "local build", | ||
artifact: &latest.JibGradleArtifact{}, | ||
cmd: testutil.FakeRun(t, "gradle -Djib.console=plain :jibDockerBuild --image=img:tag"), |
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.
I'm not sure how this testing framework works: Are we verifying that the code creates the command defined in FakeRun "gradle -Djib.console=plain :jibDockerBuild --image=img:tag"
?
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.
It’s checking that command and only this one runs
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.
kinda like a Mockito.when().then()
?
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.
Yes.
@TadCordle should be good now. Thanks for the review! |
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.
Looks good, should we also be covering the remote case?
{ | ||
description: "local build", | ||
artifact: &latest.JibGradleArtifact{}, | ||
cmd: testutil.FakeRun(t, "gradle -Djib.console=plain :jibDockerBuild --image=img:tag"), |
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.
kinda like a Mockito.when().then()
?
Don’t worry, I’m working on the remote case but I’d rather get this merged first |
Is jib team not owners? |
That would make sense but the file pattern |
Signed-off-by: David Gageot [email protected]