Test stub
A test stub is a test double that provides static values to the software under test.[src] 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.[src] A stub may be coded by hand, generated via a tool or be created as a dedicated part of a larger system such as a stub server or service.[src] Stubs differ from , which assert and verify interactions.[src] Stubs only supply data.[src]
A test stub is a test double that provides static values to the software under test.[src] 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.[src] A stub may be coded by hand, generated via a tool or be created as a dedicated part of a larger system such as a stub server or service.[src] Stubs differ from , which assert and verify interactions.[src] Stubs only supply data.[src] ==See also== Mock object Method stub Software testing Test Double Stub (distributed computing) ==References== ==External links== Test Stub at XUnitPatterns.com[src]
11 sentences · 11 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Test stub." encyclopegia.org, 2026, https://encyclopegia.org/wiki/test-stub. Accessed 01 December 2026.
Chicago
"Test stub." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/test-stub.
APA
encyclopegia.org. (2026). Test stub. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/test-stub
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON