etcd-io / etcd-io/etcd

Add unit tests for etcdctl

Open
#20,171 16 comments 6 reactions 1 assignee Claimed by @hwdef View on GitHub
stage/tracked type/feature
Dominant language
Go
Stars
52.3k
Forks
10.5k
Avg merge
3d 1h
Merged PRs (30d)
44

Description

### What would you like to be added?

Add unit tests for etcdctl.
Tasks include:

- [ ] Add a fake client
- [ ] Add unit tests for most files in etcdctl/ctlv3/command

### Why is this needed?

Right now all the changes to `etcdctl` can only manually tested, which is hard to verify for reviewers. To improve reliability, we need to have proper testing.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.