Test harness
In software testing, a test harness is a collection of stubs and drivers configured to assist with the testing of an application or component.[src] It acts as imitation infrastructure for test environments or containers where the full infrastructure is either not available or not desired.[src] Test harnesses allow for the automation of tests.[src] They can call functions with supplied parameters and print out and compare the results to the desired value.[src] The test harness provides a hook for the developed code, which can be tested using an automation framework.[src] A test harness is used to facilitate testing where all or some of an application's production infrastructure is unavailable, this may be due to licensing costs, security concerns meaning test environments are air gapped, resource limitations, or simply to increase the execution speed of tests by providing pre-defined test data and smaller software components instead of calculated data from full applications.[src] These individual objectives may be fulfilled by unit test framework tools, stubs or drivers.[src]
In software testing, a test harness is a collection of stubs and drivers configured to assist with the testing of an application or component.[src] It acts as imitation infrastructure for test environments or containers where the full infrastructure is either not available or not desired.[src] Test harnesses allow for the automation of tests.[src] They can call functions with supplied parameters and print out and compare the results to the desired value.[src] The test harness provides a hook for the developed code, which can be tested using an automation framework.[src] A test harness is used to facilitate testing where all or some of an application's production infrastructure is unavailable, this may be due to licensing costs, security concerns meaning test environments are air gapped, resource limitations, or simply to increase the execution speed of tests by providing pre-defined test data and smaller software components instead of calculated data from full applications.[src] These individual objectives may be fulfilled by unit test framework tools, stubs or drivers.[src] ==References== ==Further reading== Pekka Abrahamsson, Michele Marchesi, Frank Maurer, Agile Processes in Software Engineering and Extreme Programming, Springer, 1 January 2009[src]
15 sentences · 15 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Test harness." encyclopegia.org, 2026, https://encyclopegia.org/wiki/test-harness. Accessed 29 November 2026.
Chicago
"Test harness." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/test-harness.
APA
encyclopegia.org. (2026). Test harness. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/test-harness
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON