18823
package downloads in total from this page
Download TestApe unit test package
Below you find links to current and older version of the testape unit test package.
The package contains framework, documentation and instrumenter. You can choose
between Windows and various Linux packages. Remember to read the terms of use.
The latest official release is listed below. Latest beta release and older releases are
also available.
December 3rd 2011, Release 880
- MinGW support on windows machines.
TestApe can now be used with MinGW GCC on windows. TestApe will run on a wide variety of
platforms, enabling the developer to write the test and use them to develop and debug the
new code on the local windows environment - using gcc for compile validation and visual
studio for debugging. After code checkin, the same test can be part of a build process on
a linux based compile farm
- Validation of floating point values
Validations with a test defined level of precision and parameterized tests with
floating point variations have been added to the test system.
- Mocking of functions receiving or returning floating point values.
The mocking system now handles functions that either accepts or returns floating point
values - that includes automatic generation of default mocks for unresolved externals,
also if these are using floating points as well as mocking of clib functions with
arithmetic data types.
-
Other features
- New macro PARAMETER_RANGE_FP accepts floating point ranges and a delta value.
- Tests can be declared and executed with normal c style arguments.
- Arguments can be passed from commandline to testmain with --args switch.
- Support new versions of cl/link in Microsoft Visual Studio C++ 2010.
-
Fixed bugs
- Bugfix: ALLOW, EXPECT and SIMULATE will now work with functions defined with macro's.
- Bugfix: ALLOW_SIMULATE is now fixed.
- Bugfix: Version checking.
Notes on backward compatibillity
- Macro definition for ALLOW_SIMULATE, EXPECT_SIMULATE, ALLOW_VALIDATE and EXPECT_SIMULATE will now
evaluate value parameter twice. This might cause problems with tests written for release 791, if
this parameter is a function call with side effects.
- Macro definition for ALLOW, EXPECT, and SIMULATE will now macro expand function argument.
This may cause problems with tests written for release 791 that relies on this beeing a macro string
If you miss support for a certain linker or operating system or if you want
to report bugs or give ideas for improvements, please
contact the author. You can call,
use the
forum, or write an email.
Any feedback is very welcome - It is the feedback from TestApe users that will
continue to make new development worth the effort.
Next release
Newest features and latest bugfixes can be found here.
The changes are too small to jusitify a new release - instead these minor changes
will accumulate here until a new release is made.
There are currently no beta release available
Future releases
The following is currently planned for future releases
- Tests for webtty to the package.
- Examples in command reference section
- Option to execute a single or a range of testcases from commandline based on testcase names.
- New names for test macros. Mock related functionality has left the naming a bit confusing and inconsistent.
- In target tests. Write tests and develop embedded code on pc - verify on target.
You are also welcome to add proposals on the forum
here.
Older releases
If you need the older releases you will find them in this section.
April 2010, release 791
April 2nd 2010, Release 791
- Full mock support for function and library calls.
In this release all functions can be mocked. That includes functions that are internal
to the unit or functions called in C library.
Every test can supply its own individual mock. This will be in scope during that test only.
Test suites can supply mocks that will remain in scope for the entire testsuite.
The mock can validate the parameters and/or call the function it mocks.
- Automatic default mocks for unresolved externals.
Mocking functions explicitly is possibility. As default the instrumenter will supply default
mocks for all unresolved externals. Units with extensive use of external interfaces can have
a test running immediately - no need to write dummy stub functions.
- New macros ALLOW, ALLOW_SIMULATE and ALLOW_VALIDATE implemented.
These new macros allows you to pass control to a mock function. The scope of these macros
defines when a mock is called and what happens after.
When a mocked function is called, the framework can either return a specific value to
the unit each time or invoke the supplied mock. The mock can choose to give back control to
the mocked function.
This is powerful as generic validation of parameters to functions - for example the format
string and parameters of printf.
-
Other features
- Option to limit amount of tests from commandline.
e.g. --> testexe 5-7 will execute testcase 5,6 and 7.
testexe e1 will execute first testcase with an error.
- Examples from documentation added to installation.
- Improved debug support with testape_error_handler.
- All functions (also C library functions used by the framework) can now be mocked.
- Instrumenter will notify when a new release becomes available.
- Mocked function and its current replacement shown in log.
- New instrumenter options -o and -v to help troubleshooting.
-
Testcode can be written to produce consistent results when the amount of object
files in the unit are changed. If object files are removed, default mocks
are automatically supplied. If object files are added, the new functions
are automatically mocked in existing tests.
-
Fixed bugs
- Bugfix: gcc -m32 is now passed correctly.
- Bugfix: Support new versions of cl/link in Microsoft Visual Studio C++ 2008.
- Bugfix: Support new versions of gcc in CygWin and Linux.
- Bugfix: Mock return values could in rare cases become corrupted.
- Bugfix: Added error message when instrumenter could not create temporary files.
- Bugfix: Instrumenter allows gcc with -ltestape, so testape.a will be loaded from lib path.
- Bugfix: testape_cache .ini style file handling improved.
- Bugfix: Mocked static functions will break instrumentation.
July 2008, release 556
July 24th. 2008, Release 556
- PARAMETER_xxxx replaces EXECUTE_ADD_xxxx macros.
- Test and error id's selectable in output.
- Test executable commandline option -h, -idt, -ide and -q added.
- Documentation updated. Getting started section added.
- Bugfix: Framework returned wrong exit codes
- testmain is now common entry point for the framework.
- Bugfix: SIMULATE_VALUE always returns zero.
- EXECUTE has been rewritten in order to make it easier to debug test
executables.
- EXECUTE no longer return number of errors.
- Bugfix: Failed validations outside the scope of a test, crashes.
- Bugfix: memory leak.
- Dependency between framework and libstdc++ has been removed.
june 2008, release 433
September 2007, release 408
September 2007, release 408
October 2006, release 298
News
The latest headlines from Testape.com
TestApe Release 880 available, Dec 3rd 2011
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
Forum change, Mar 27th 2011
TestApe forum is now hosted on Proboards.
Support questions can be posted here or send directly on email. Due to
...
more TestApe beta release available, Sep 27th 2011
TestApe can now be used with MinGW GCC on windows. Also supported in this beta are floating point types in
validations or when mocking functions
more IPad update for WebTTY, May 15th 2011
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.
TestApe Release 791 available, Apr 2nd 2010
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 TestApe beta version available, Jan 26th 2010
New beta version is now available for download. This is the last beta before official release.
The release supports an extensive mocking system.
more
Forum change, Mar 10th 2009
There 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.
...
more