Project: Service Test Suite

Updated

September 8, 2026

Project: Service Test Suite

Overview

For Bookstore (or any API), build a layered suite.

Layers

Layer Tools Speed
Domain unit table tests ms
Handler httptest + fakes ms
Fuzz validators/parsers CI timed
Golden error JSON / reports ms
Integration optional Testcontainers slower

Deliverables

  • internal/domain/*_test.go
  • internal/httpapi/*_test.go with auth cases
  • One fuzz target
  • One golden file
  • make testgo test ./...
  • make test-racego test -race ./...

Definition of done

go test ./... green; race clean; README documents how to run fuzz for 10s.