Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bluGill
9 months ago
|
parent
|
context
|
favorite
| on:
Testing Without Mocks: A Pattern Language (2023)
Mocks check that you call a function with the correct arguements. Stubs return a canned value but don't tell you that if they did. spys watch something happen. Fakes model the real thing with enough complexity that you write tests for them.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: