Software Engineering KB

Home

❯

06 Development Process

❯

01 Testing

❯

01 Concept

❯

Spies

Spies

Feb 10, 20261 min read

  • testing
  • spies

Spies

← Back to Test Doubles

Record calls without changing behavior. The real implementation still executes, but the spy records method calls, arguments, and return values for later assertion. Useful when you want real behavior but need to verify interactions.

Key Properties

  • Call Recording
  • Real Behavior Preserved
  • Post-Hoc Verification

Related

  • Mocks (replace behavior and verify)

testing spies


Graph View

  • Spies
  • Key Properties
  • Related

Backlinks

  • Test Doubles
  • Mocks

Created with Quartz v4.5.2 © 2026

  • GitHub