You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we agree on a mocking framework to use in the project?
The lack of unit tests is starting to make things difficult, especially as collaboration increases. Unit tests for stmps are particularly difficult because of the TUI nature of the project, but also in the Subsonic integration; thankfully, the latter can be easily solved with mock servers.
There are several options from which to choose:
mockery, 160 releases, 128 contributors, updated 2 weeks ago
counterfeiter, 21 releases, 34 contributors, updated last week,
minimock, 43 releases, 15 contributors, updated last month
mocktail, 11 releases, 9 contributors, updated 8 mos ago
I have no preference; just that we pick an official one. I'd rather not have to change the tooling once we start using it.
Edit I still have no preference, except that either of the first two look preferrable to the second two. I've used mockery before, but not yet counterfeiter. I haven't used mockery a lot, though, so they're probably about equal in adoption difficulty for me. I've also used mocktail, but for some reason defaulted to mockery in my projects that have mocking. mocktail appears to prefer something other than testify, which I have used a lot, and I feel as if leveraging testify is a benefit. I'll be fine with any decision.
The text was updated successfully, but these errors were encountered:
In the absence of external input or recommendations, I'm going to try a few and pick one fore the xxxserxxx fork. I'm getting more desperate for better unit tests.
Can we agree on a mocking framework to use in the project?
The lack of unit tests is starting to make things difficult, especially as collaboration increases. Unit tests for stmps are particularly difficult because of the TUI nature of the project, but also in the Subsonic integration; thankfully, the latter can be easily solved with mock servers.
There are several options from which to choose:
I have no preference; just that we pick an official one. I'd rather not have to change the tooling once we start using it.
Edit I still have no preference, except that either of the first two look preferrable to the second two. I've used mockery before, but not yet counterfeiter. I haven't used mockery a lot, though, so they're probably about equal in adoption difficulty for me. I've also used mocktail, but for some reason defaulted to mockery in my projects that have mocking. mocktail appears to prefer something other than testify, which I have used a lot, and I feel as if leveraging testify is a benefit. I'll be fine with any decision.
The text was updated successfully, but these errors were encountered: