Add Tests for Create Command
Opened this issue · 2 comments
basokant commented
- Create file structure for tests in our app.
- Add unit test(s) for the
create
cobra command. See https://nayaktapan37.medium.com/testing-cobra-commands-in-golang-ca1fe4ad6657 for an example. - Add
go test
to GitHub Actions suite.
basokant commented
What are opinions on adding testify
for use in our tests? I personally prefer using their assertion API over using if statements and manual test error messages. @Melkeydev 👀