Warning: Declaration of HSM_PageTitle::load($meta) should be compatible with HSM_Module::load($meta = '') in /kunden/84206_76229/webseiten/component-test/wp-content/plugins/headspace2/modules/page/page_title.php on line 0

Warning: Declaration of HSM_Description::load($meta) should be compatible with HSM_Module::load($meta = '') in /kunden/84206_76229/webseiten/component-test/wp-content/plugins/headspace2/modules/page/description.php on line 0

Warning: Declaration of HSM_Tags::load($meta) should be compatible with HSM_Module::load($meta = '') in /kunden/84206_76229/webseiten/component-test/wp-content/plugins/headspace2/modules/page/tags.php on line 0

Warning: Declaration of HSM_JavaScript::load($meta) should be compatible with HSM_Module::load($meta = '') in /kunden/84206_76229/webseiten/component-test/wp-content/plugins/headspace2/modules/page/javascript.php on line 0

Warning: Declaration of HSM_Stylesheet::load($meta) should be compatible with HSM_Module::load($meta = '') in /kunden/84206_76229/webseiten/component-test/wp-content/plugins/headspace2/modules/page/stylesheet.php on line 0

Warning: Declaration of HSM_Stylesheet::init() should be compatible with HSM_Module::init($args) in /kunden/84206_76229/webseiten/component-test/wp-content/plugins/headspace2/modules/page/stylesheet.php on line 0
Hierarchy of Functions – Component Test « Component Test

Posts Tagged Module Test

Hierarchy of Functions

A hierarchy of functions can be tested in a manner very similar to the test of a single function by taking the top-level function as the test object, and considering the called functions as to be inside the test object.

Hierarchy of functions

A hierarchy of functions takes the top-level function as test object.

This is technically achieved by not replacing the called functions by stub functions. You may still consider this as unit testing as above, but for bigger units.

It can also be considered as integration testing for the functions in the hierarchy, because they have to work together correctly to pass the tests, at least to some extent. Such a hierarchy of functions could also be called a module, but this term should not be confused with a C source module of a C program. (A C source module is not automatically an appropriate test object for module testing, as it is defined syntactically, whereas a module for module testing is defined semantically.)

The testing of a hierarchy of functions is technically very similar to the testing of a single function. Testing of a hierarchy of functions is the functionality of many unit testing tools including Tessy and will not be discussed further here.

, , , , , , ,

No Comments