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

Add Tests and Unit Test Structure to Generated Project

Open basokant opened this issue 2 years ago • 2 comments

  • [ ] Include an opinionated Go standard test project structure, and an example unit test.

Potential Ideas:

  • Add a cli step and flag for this so the user could choose to have this be a part of the structure or not.
  • Add some sort of option to include testify for a better test assertion experience https://github.com/stretchr/testify

basokant avatar Nov 11 '23 21:11 basokant

Yo if no one has taken this issue, can I add some unit tests for the steps etc?

emilaleksanteri avatar Nov 13 '23 17:11 emilaleksanteri

Would be interesting to setup a full DB with testcontainer-go or equivalent (when not selecting sqlite) for integration tests.

cedric-appdirect avatar Nov 29 '23 22:11 cedric-appdirect