Jump to content

Test stub

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by Stevebroshar (talk | contribs) at 11:56, 4 May 2024 (Move general info to test double). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A test stub is a test double that provides static values to the software under test.

A test stub provides canned answers to calls made during the test, usually not responding at all to anything outside what's programmed in for the test.[1]

A stub may be coded by hand or generated via a tool.

See also

[edit]

References

[edit]
  1. ^ Fowler, Martin (2007), Mocks Aren't Stubs (Online)
[edit]