./sample23 in the sample directory will generate the following output
TestApe test executable Unit testing for embedded software - http://testape.com Initializing ./sample23 error e001: sample23.c:12: failed value of PI. Expected 3.140000 (3.14), was 3.141593. Terminating ./sample23 - exitcode 1 0 passed, 1 failed (1 errors), 0 skipped
The detailed log report is disabled by default, but it can be enabled from commandline with -ol option. In the log each log statement is prefixed with the tag
TestApe and optionally the
current test and/or error identifier as shown below.
./sample23 -ide -idt -olwhich will produce the following output instead
testape: TestApe test executable testape: Unit testing for embedded software - http://testape.com testape: testape: Initializing ./sample23 testape: -ol ( errors:stderr, summary:stdout, log:stdout ) testape: -ide ( error identifiers shown in log ) testape: -idt ( test identifiers shown in log ) testape: t000 e000 testape: Executing test testmain t000 e000 testape: t000 e000 testape: PASSED verify PI t000 e000 testape: expected .......... 3 (PI) t000 e000 testape: actual ............ 3 t000 e000 testape: t000 e001 testape: FAILED verify PI error e001: sample23.c:12: failed value of PI. Expected 3.140000 (3.14), was 3.141593. t000 e001 testape: expected .......... 3.140000 (3.14) t000 e001 testape: actual ............ 3.141593 t000 e001 testape: t000 e001 testape: PASSED verify PI t000 e001 testape: expected .......... 3.141593 (3.1415926) t000 e001 testape: actual ............ 3.141593 t000 e001 testape: t000 e001 testape: FAILED test testmain (1 error) t000 e001 testape: t000 e001 Verify floating point in test testmain t000 e001 testape: testape: testape: Terminating ./sample23 - exitcode 1 testape: 0 passed, 1 failed (1 errors), 0 skipped
Every error detected and every test execution is assigned a sequential identifier. Error identifiers are 3 digits shown prefixed by e, e.g.
e001. Test identifiers are shown prefixed by t, e.g.
These identifiers can be used from the commandline to limit the amount of test to run.
When an error is detected TestApe print an error message to stderr and add information about the error to the log.
The log will contain a line for the actual and expected value. Only 8 values will be shown on each line, so when
validating file content, strings, structs and arrays, several lines may be shown.
Differences between actual and expected are indicated with the
^ sign as shown below.
testape: FAILED verify s testape: expected ..........  4e 4f 54 20 'NOT ' testape: actual ............  57 45 52 00 'WER.' testape: ^^ ^^ ^^ ^^ ^^^^
It has been a long time since last official release and the list of bugfixes, features and supported platforms accumulating in the beta has grown substantially. I am happy to annouce that a new release is ready.more
New beta version is now available for download.more
New is this release are support for floating point validations and function mocking. Also, MinGW has been added to the list of supported platforms.more
TestApe forum is now hosted on Proboards. Support questions can be posted here or send directly on email. Due to ...more
TestApe can now be used with MinGW GCC on windows. Also supported in this beta are floating point types in validations or when mocking functionsmore
A small fix for webtty scripts, to allow the usage from Apple IPads. Tab on textarea to bring up IPad keyboard - you may have to scroll webpage beneath keyboard, in order to actually see what you're typing.
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.more