Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I don't really understand what people are suggesting when they say mocking is bad in unit tests.

"Unit test" does not necessarily mean "class test" or "method test"

and always treating it as such is counterproductive.

I have done it both ways. tests coupled to every public method with dozens of mocks would not be my preference.



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

Search: