Hacker News new | past | comments | ask | show | jobs | submit login

I’ve used mimic an I think it’s a much better option than Mox.



We spoke about this topic for far too long today, but looking at Mimic and its "nothing is mocked unless I tell you to" design, it works only iff you are using mocks the wrong way and at the wrong boundaries.


There’s no reason you can’t setup your tests so that mimic stubs out your module or a subset of functions in your module everywhere where you don’t explicitly override it.

The main difference is that the extra dispatch layer is only injected at test time, so there’s no extra indirection in the production code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: