phase 2 · 2.6-testing-at-scale
Acceptance tests + fakes over mocks
The lesson for this task hasn't been written yet. The mastery criteria below is the shortest description of what you'll own when this task is green.
Mastery criteria
- Black-box acceptance tests exercising the HTTP server via net/http.Client
- Fake-with-contract test-double for one external dependency
- Articulate when you would choose Testcontainers over a fake
Verify
Run from your go-dojo repo root:
go-dojo verify 2.6-testing-at-scale
This runs the task's go test suite in exercises/phase-2/2.6-testing-at-scale/, commits the attempt to .go-dojo/attempts/, and updates your mastery.