Skip to content

cli: fix --build flag for create#10982

Merged
milas merged 1 commit intodocker:mainfrom
milas:fix-build-create
Sep 8, 2023
Merged

cli: fix --build flag for create#10982
milas merged 1 commit intodocker:mainfrom
milas:fix-build-create

Conversation

@milas
Copy link
Copy Markdown
Contributor

@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 <[email protected]>
@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 StefanScherer, glours, laurazard, ndeloof, nicksieger and ulyssessouza and removed request for a team September 7, 2023 21:38
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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
@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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants