2 ms·
Please don't mock objects if possible. Prefer real, then fake, then mock for testing error conditions that "cannot happen" during normal operation that you can'
by gowld 7y ago
Please don't mock objects if possible. Prefer real, then fake, then mock for testing error conditions that "cannot happen" during normal operation that you can't force of fake in tests.
https://medium.com/@CDehning/when-to-use-fakes-instead-of-mocks-c80188b9a3f1 https://medium.com/@CDehning/when-to-use-fakes-instead-of-mo...