![]() |
![]()
| ![]() |
![]()
NAME
LIBRARYshtk_import unittest SYNOPSIS
DESCRIPTIONThe Fixture functions must not directly contain any code. All they can
do is define other functions, such as EXAMPLESThe following piece of code illustrates the components of a test fixture: shtk_unittest_add_fixture my_collection my_collection_fixture() { setup() { ... optional function providing per-test setup code ... } teardown() { ... optional function providing per-test teardown code ... } shtk_unittest_add_test first_scenario first_scenario_test() { ... test code for the first test case ... } shtk_unittest_add_test second_scenario second_scenario_test() { ... test code for the second test case ... } } SEE ALSOHISTORY
|