-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
Moving initial docker/docker issue moby/moby#31217 here
This issue is to keep track of unit test for the cli (i.e. cli/commands package and sub-packages).
- bundlefile
- checkpoint @adshmh
- container (fakeClient added in Reduce cyclomatic comeplxity threshold #61) @vdemeester
- formatter
- idresolver @adshmh
- image @icapurro Unit tests for cli/command/image package moby/moby#32248
- inspect
- network (fakeClient added in Host and Bridge network support in docker stack deploy #132) @ksouf
- node
- plugin @adshmh
- prune
- registry
- secret @adshmh
- service
- stack @adshmh
- swarm
- system
- task
- trust
- volume (Add unit tests to cli/command/volume package moby/moby#31124)
The swarm, node and volume packages are example on how to write those tests (but they probably can be enhance, and enhancement are always welcome ).
- In order to write tests for these, you'll have to create more builder (
cli/internal/test/builders) for objects that are not yet there. - You can also use
goldenfiles (see examples) - For each of these package, there is some integration tests (in
integration-cli) that could be removed. I tried to mark them when I saw them, but it's not complete yet. I'll try to update this issue with a list of integration test that could be gone for each packages.