raws icon indicating copy to clipboard operation
raws copied to clipboard

Should we consider to use an assertion package in the tests?

Open ifraixedes opened this issue 6 years ago • 1 comments

Should consider to use any any assertion library for the test of this package?

In case that yes, which one

  1. https://godoc.org/github.com/stretchr/testify/assert
  2. https://github.com/test-go/testify (fork of option 1)
  3. 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.

ifraixedes avatar Mar 12 '18 16:03 ifraixedes

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.

xescugc avatar Mar 12 '18 19:03 xescugc