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

cli: fix --build flag for create #10982

Merged
merged 1 commit into from Sep 8, 2023
Merged

cli: fix --build flag for create #10982

merged 1 commit into from Sep 8, 2023

Conversation

milas
Copy link
Member

@milas milas commented Sep 7, 2023

What I did
I missed this during a refactor and there wasn't test coverage. Instead of adding more heavy-weight integration tests, I tried to use gomock here to assert on the options objects after CLI flag parsing. I think with a few more helpers, this could be a good way to get a lot more combinations covered without adding a ton of slow E2E tests.

Related issue
Introduced here:

(not mandatory) A picture of a cute animal, if possible in relation to what you did
skunk

I missed this during a refactor and there wasn't test coverage.
Instead of adding more heavy-weight integration tests, I tried
to use `gomock` here to assert on the options objects after CLI
flag parsing. I think with a few more helpers, this could be a
good way to get a lot more combinations covered without adding
a ton of slow E2E tests.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
@milas milas requested a review from a team September 7, 2023 21:37
@milas milas self-assigned this Sep 7, 2023
@milas milas requested review from nicksieger, ndeloof, StefanScherer, ulyssessouza, glours and laurazard and removed request for a team September 7, 2023 21:38
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Patch coverage: 78.57% and project coverage change: +0.04% 🎉

Comparison is base (e1aa4f7) 57.64% compared to head (c5e72fc) 57.69%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10982      +/-   ##
==========================================
+ Coverage   57.64%   57.69%   +0.04%     
==========================================
  Files         127      127              
  Lines       11077    11092      +15     
==========================================
+ Hits         6385     6399      +14     
- Misses       4060     4061       +1     
  Partials      632      632              
Files Changed Coverage Δ
cmd/compose/create.go 60.00% <78.57%> (+10.52%) ⬆️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.

📢 Have feedback on the report? Share it here.

Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@milas milas merged commit 1311546 into docker:main Sep 8, 2023
25 checks passed
@milas milas deleted the fix-build-create branch September 8, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants