go-blueprint icon indicating copy to clipboard operation
go-blueprint copied to clipboard

Add Tests for Create Command

Open basokant opened this issue 2 years ago • 2 comments

  • [ ] 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 avatar Nov 11 '23 21:11 basokant

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 👀

basokant avatar Nov 11 '23 21:11 basokant

Yeah I like testify @basokant

Melkeydev avatar Nov 20 '23 04:11 Melkeydev