-
Notifications
You must be signed in to change notification settings - Fork 18.9k
[tests] cli unit tests #31217
Copy link
Copy link
Closed
Labels
Description
This issue is to keep track of unit test for the cli (i.e. cli/commands package and sub-packages).
- bundlefile
- checkpoint
- container
- formatter
- idresolver @adshmh
- image @icapurro Unit tests for cli/command/image package #32248
- inspect
- network
- node
- plugin @adshmh
- prune
- registry
- secret @adshmh
- service
- stack @adshmh
- swarm
- system
- task
- volume (Add unit tests to cli/command/volume package #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.
Reactions are currently unavailable