In classic software development, a modest complicated software program is typically decomposed into several cooperating modules. The compiler interprets the source code for each module and creates an object file holding the compiled code. The linker assembles all the object files and creates the complete executable. If one or more, of these object files were not present, the linker could not assemble the software program and it would not be able to execute. In TestApe terminology, an incomplete assembly of object files is called a unit. The TestApe instrumenter combines these units with the framework, the TestApe tests and with mocks for the functions in missing object files, in order to turn it all into a TestApe executable.
When running a TestApe executable the behavior of the unit is tested using the TestApe framework and the result of the tests are reported as shown below
In stub execute PASSED verify command expected .......... [000] 6c 69 6e 6b 20 40 74 65 'link @te' actual ............ [000] 6c 69 6e 6b 20 40 74 65 'link @te' PASSED verify file existence testape_prelink_args expected .......... testape_prelink_args actual ............ testape_prelink_args PASSED verify file size testape_prelink_args expected .......... 52 actual ............ 52 PASSED verify testape_prelink_args expected .......... [000] 6d 79 6f 62 6a 2e 6f 62 'myobj.ob' actual ............ [000] 6d 79 6f 62 6a 2e 6f 62 'myobj.ob' PASSED verify ret_val expected .......... 0 (0) actual ............ 0 PASSED test instrument_testape_libThe entire process can be automated and run repeatedly. A TestApe executable is typically run, whenever one of the modules in the unit has changed. The test verifies that the new functionality behaves as expected ,or that the unchanged part of the unit is still working.
testape
This release contains a new flexible mocking system with default mocks automatically generated for unresolved functions. Installation packages are available for GCC/Linux, GCC/CygWin as well Visual Studio 2009/Windows XP or Vista.
moreNew beta version is now available for download. This is the last beta before official release. The release supports an extensive mocking system.
moreThere is a change for the forum hosted on this site. The previous phpBB forum is closed for now. All forum threads will be migrated to a new simple blog. ...
moreA minor update has been released in order to support GCC when running in a CygWIN environment.
moreThe major update this year has been released. It includes a reference manual and macros to support test parameters and improved usage of the automatic stub instrumentation.
moreThe site has been updated. The webtty package has been tugged safely away in the corner and the TestApe ...
more