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

> that still a mock

It's a fake, not a mock.

Mocks and fakes are both test doubles.

> And thr point is to structure your code in such a way that

Sometimes it's not your code. Sometimes you want to change legacy code and want tests to prove that your changes don't break anything.

Life would be so much easier if there were just one way to test, wouldn't it?




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

Search: