raws
raws copied to clipboard
Should we consider to use an assertion package in the tests?
Should consider to use any any assertion library for the test of this package?
In case that yes, which one
- https://godoc.org/github.com/stretchr/testify/assert
- https://github.com/test-go/testify (fork of option 1)
- Any other? (please suggest)
The goal isn't to refactor the current tests for only this purpose, but if we agree in using one, who write a new test or need to change any test could use it without asking at that moment, which always delays the progress.
On the other hand, we could decide to enforce the usage of the one agreed in the new tests and when the existent ones be drastically refactored.
I would go for option 1) and enforce the use of it, it'll make the tests more readable and easy to work with.
And at some point migrate the tests that we have to it to have all the tests use the same lib.