Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use testify for testing. #99

Merged
merged 2 commits into from
Mar 10, 2021
Merged

Use testify for testing. #99

merged 2 commits into from
Mar 10, 2021

Conversation

lucasmichot
Copy link

@lucasmichot lucasmichot commented Mar 9, 2021

This PR introduces the usage of testify for testing this package.
This is a known and popular testing suite for Go.

It makes the tests very easy to maintain and concise.

All assertions have been simplified.

The next steps (in another PR) are to mock the responses with testify.


——

This PR could ideally be merged after the move to Github Action cf. #96



—-

Cc @rfeiner @CoolGoose

@lucasmichot
Copy link
Author

lucasmichot commented Mar 10, 2021

Note for @prep: Travis was starring with 1.14.x before the move to GA.
There is thus no point to maintaining CI testing for versions below

cf. cfa8c50

@prep
Copy link
Contributor

prep commented Mar 10, 2021

Fair point, @lucasmichot and thank you for this PR 🙏 The verbosity of these tests is mostly my fault as I prefer to leverage stdlib over a 3rd party package if I can get away with it, but as your PR shows, the price for a little 3rd party package is a small price to pay 😉

@prep prep merged commit 4bca38b into messagebird:master Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants