Modern QA2026The Testing Diamond and Honeycomb — tiles
Log inJoin
12 / 62 · 22 Test Strategy & Quality Metrics · Test Pyramid in Practice← prev⊞ allnext →☰ Read as one page

2.4The Testing Diamond and Honeycomb

The Testing Diamond

         /  E2E  \
        /─────────\
       / Integration \        ← Widest: most tests
      /    Tests      \
     /─────────────────\
      \  Unit Tests   /       ← Narrower
       \─────────────/

The diamond emerges naturally in microservice architectures where:

  • Individual services have thin business logic (narrow unit test layer)
  • The complexity lives in service-to-service communication (wide integration layer)
  • E2E tests cover critical cross-service journeys

The Honeycomb (Spotify Model)

       ┌──────────────────┐
       │  Integrated Tests │    Few
       ├──────────────────┤
       │  Integration      │    ← Most effort here
       │  Tests            │
       ├──────────────────┤
       │  Implementation   │    Few
       │  Detail Tests     │
       └──────────────────┘

Spotify's honeycomb model distinguishes between:

  • Implementation detail tests: tests that break when you refactor without changing behavior (often overtested)
  • Integration tests: tests that verify behavior at service boundaries (the sweet spot)
  • Integrated tests: tests that cross multiple services (expensive, use sparingly)