News

The latest headlines from Testape.com

TestApe Release 1171 available, Aug 20th 2014

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.

One of the major updates in this release are the support for the ARM processor. The processor dependent code of the mocking system has been isolated and a version of it for the ARM processor has been implemented.

This release contains documentation and sample code that demonstrates how to customize TestApe, so that it can run on bare metal configurations or other operating systems.

If you already have used one of the earlier version, you will see a difference in the output from the tests. The detailed log output is now disabled by default. Only short error messages, with file and line references, are shown for those tests that fail.

Exception handling has been overhauled and it is now possible to write tests that can intercept exceptions and check that they happen at the right time.

There are new macros and syntax changes to existing ones. Existing macros that are deprecated will still work as they used to. The new macros validates masked bit, byte and word values and they make it possible to use the mocking system with other test tools.

The Linux packages are tested on i386 Ubuntu 14.04 and on armhf Raspbian/Wheezy. The windows packages are tested in Windows 7 and Windows Vista with GCC/MinGW-w64, Visual Studio Express 2010 and Visual Studio Enterprise 2010.

More information about this release can be found on download page

TestApe beta version available, Jul 21th 2014

New beta version is now available for download.

  • Packages for Raspbian added for download.
  • ARM processor family (armhf and arm-linux-gnueabi with softfp) is now a supported architecture.
  • Consistent macros with the use of optional parameters.
  • Mocking rewritten and behavior documented in more detail.
  • New macros MOCK/UNMOCK makes is possible to manually control mocking of functions.
  • New macros VALIDATE_BIT, _BYTE, _WORD, _DWORD.

More information about this beta release can be found on download page

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.

The TestApe unit test system is a Linux/Windows based unit test system for embedded sw written in C. It contains a full featured mocking system that is easy to understand and use. TestApe is designed to be part of the build process. With a quick turn around time when writing new tests ( no need to write tons of dummy stubs with long switch cases ), it is also well suited for a SCRUM based development process.

Installation packages are available for GCC/Linux, GCC/CygWin/MinGw as well as Visual Studio 2010/Windows 7, Vista or XP

The major new features are

  • 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.
  • Both the test and the mocking system now supports floating points. Validations with a test defined level of precision and parameterized tests with floating point variations have been added to the test system. 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.
  • TestApe tests have always been simple C functions, but with this release these functions can have any prototype. It provides the developer a possibility to refactor and share core functionality between existing tests. Also the test executable accepts parameters to be passed to tests from command line.

The release is tested with GCC in Linux (debian lenny) and in Windows 7,Vista with GCC/Cygwin, GCC/MinGW, Visual Studio Express 2010 and Visual Studio Enterprise 2010.

More detailed information, documentation and release note can be found on download page

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 huge amount of spam, and my lack of time to fight it, the TestApe forum have not been in operation for the last year.

I will now try this approach instead in order to handle support issues. The new forum will be operational within the next weeks. You're of course still welcome to send questions on email.

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

A new possibility is to declare tests with arguments - these can be passed between tests and to testmain from command line.

The release is tested with GCC in Linux (debian lenny) and in Windows XP, Vista with GCC/Cygwin, GCC/MinGW, Visual Studio Express 2009 and Visual Studio Enterprise 2010.

More detailed information, documentation and release note can be found in the beta section on the download page

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.

To help getting started with TestApe, the installation packages now includes working examples from documentaton. These are also available in a live installation (hosted by WebTTY) here

The major new features are

  • 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 quickly - no need to write dummy stub functions
  • New macros ALLOW, ALLOW_SIMULATE and ALLOW_VALIDATE implemented. These new macros allow to pass control to a mock, regardless of the time it is called. The mock can either return a specific value each time or invoke the supplied function. Can be used to validate parameters to functions when as they are called - for example the format string of printf before printf is actually called

The release is tested with GCC in Linux (debian lenny) and in Windows XP, Vista with GCC/Cygwin, Visual Studio Express 2009 and Visual Studio Enterprise 2009.

More detailed information, documentation and release note can be found on download page

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.

  • New macros ALLOW_xxxx to mock functions and validate parameters for every function call made during test.
  • Support new versions of cl/link in Microsoft Visual Studio C++ 2008.
  • All functions (also C library functions used by the framework) can now be mocked.
  • Full mock support for function and library calls. Automatic default mocks for unresolved externals.

More information about this beta release can be found on download page

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. There are too many spammers taking advantage of a known framework and keeping the forum free of spam was too much work. For now, it is possible to submit simple messages using the new blog instead.

TestApe CygWIN support released, Jun 19th 2008

A minor update has been released in order to support GCC when running in a CygWIN environment.

The windows .zip and .msi packages have been updated so that they also include the testape framework compiled for gcc/ld in CygWIN. They now contain both testape.lib for MS Visual Studio CL/LINK and testape.a for CygWIN gcc/ld. There is still only one instrumenter, since there is no need for a special CygWIN instrumenter - the same executable used for MS Visual Studio CL/LINK will also work with gcc/ld in CygWIN.

TestApe instrumenter will now correctly handle compile options that manipulates the usage of leading underscores in symbol names.

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.

Only one line of test code is needed to validate that a function call is called and to simulate its return value. Together with the on-the-fly stub generation it means that the first test can be running within minutes, even on very complex units with many interfaces.

Another major improvement is that tests and stubs can be parameterized. Test parameters can be sent from the tests to the framework, to nested tests, or to stubs. This gives the test writers the possibility to parameterize the functionality in an existing test/stub or to provide values that the framework will use with the generated stubs.

In this release the framework supports, that the same test can be executed automatically with a list of test parameters, e.g. interesting values or ranges such as [0-255], [-128-127], [NULL, "", "xx"] or [true, false]. This provides a very methodic way to increase coverage.

This release also contains first version of the TestApe reference manual. The reference manual gives an in-depth explanation of all the TestApe macros as well as a chapter on how to do memory and coverage analysis.

Site improvements, Aug 23th 2007

The site has been updated. The webtty package has been tugged safely away in the corner and the TestApe unit test framework, that is ment to be the ruler of this site has been emphasized. The layout has changed - the colors are gone and the table based html has ben replaced with a floating three coloumn CSS style layout.

Webtty adminstration page , Nov 15th 2006

Release 0.2 has been created. The delete key problem has been solved in a reasonable efficient way and some minor problems with Firefox has been resolved. Also the javascript code has been completely rewritten in OO.

Multiple instances can now be run on the same page - but ..... Persistent connections are the bread and butter of webtty and since there is a limit in IE and FireFox on how many of these can be open at a time, you will experience slow responding terminals if you have more than one object active at a time. More about these limitations in this excellent article here

In addition a new administration interface has been added. All the traffic in all the virtual terminal will accumulate on the administration page. You will be able to follow what is going on live. You can resize, scroll or close the terminals.

Please spread the word - The administration page is going to look really cool, if there is a lot of activity ongoing.

Webtty, First day, Oct 27th 2006

Thank you for the great interest in this project - During these inital days, at no time there were less than 10 terminals active at the same time and I have had 100 visitors pr. hour, so I am struggling to keep up.

I'll setup a real blogging system soon - in the meantime just mail me your comments at martin@testape.com and I'll add the content manually to this blog.

Also, if you have any ideas on how the javascript should implement delete key, please let me know. It is really annoying, but the problem is not as simple as it appears.

TestApe initial release, Oct 27th 2006

First beta release now ready. Still lots of ideas to implement, but basic functionality is present and working. The instrumenter is working in windows, also from within visual studio. Basic documentation is there.

News

The latest headlines from Testape.com

TestApe Release 1171 available, Aug 20th 2014

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

TestApe beta version available, Jul 21th 2014

New beta version is now available for download.

more

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