Software Engineering KB

Home

❯

06 Development Process

❯

01 Testing

❯

01 Concept

❯

Stubs

Stubs

Feb 10, 20261 min read

  • testing
  • stubs

Stubs

← Back to Test Doubles

Return predetermined values without verifying interactions. Stubs provide canned responses to queries so the system under test can proceed without real dependencies. Simpler than mocks and less brittle.

Key Properties

  • Canned Responses
  • No Verification
  • Simplicity

Related

  • Mocks (add verification)
  • Fakes (working implementation)

testing stubs


Graph View

  • Stubs
  • Key Properties
  • Related

Backlinks

  • Test Doubles
  • Fakes
  • Mocks

Created with Quartz v4.5.2 © 2026

  • GitHub