6140
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.
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.
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. The following is currently planned
for future releases
- CUnit integration. TestApe as mocking framework for CUnit.
- Separate mocking from validation. Mock related functionality has left the naming a bit confusing and inconsistent.
- Examples in command reference section
- Option to execute a single or a range of testcases from commandline based on testcase names.
- 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.
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 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 TestApe CygWIN support released, Jun 19th 2008
A minor update has been released in order to support GCC when running in a
CygWIN environment.
more TestApe first beta released, Aug 23th 2007
The 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.
more
Site improvements, Aug 23th 2007
The site has been updated. The webtty package has been tugged safely away in the
corner and the TestApe
...
more