Test stub

{{More citations needed|date=February 2021}}

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.Fowler, Martin (2007), Mocks Aren't Stubs [http://martinfowler.com/articles/mocksArentStubs.html#TheDifferenceBetweenMocksAndStubs (Online)]

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.

See also

References

{{reflist}}