Technologists in the ‘Holy Land’ were working away over the festive period and informed the Computer Weekly Developer Network blog of news emanating from Tel Aviv based Typemock.
The firm is known for its work in ‘automated’ ‘unit testing‘ — so taking those two elements together:
a) automation being important in software engineering terms based on defined analysis of procedures that can be offloaded to programmed machine intelligence and so hence automated.
b) unit testing being important as applications are componentised to the degree that we can define individual parts to test ‘as units’ before wider integration testing, system testing and end-to-end testing can be performed.
Isolator++ Version 3.5
So then, unit testing 101 out the way… the firm has now released its Isolator++ Version 3.5 product.
This comes as Typemock claims to have experienced a 325% increase in the use of it’s Isolator++ unit testing tool for C and C++ code.
The developers at Typemock remind us that C and C++ are used by approximately 6.3 million developers worldwide (that’s 20% of developers – as many as Java).
NOTE: C/C++ is most popular in industries like finance and banking.
The need for unit testing C/C++ is generally considered more urgent than other languages because the complexity of the language means there are fewer built-in safeguards.
How to test, by the unit
Isolator++ uses patented isolation technology in order to change the behaviour of methods under test. It also enables asserting method calls and parameters on dependencies when it is not possible to test for return values and/or state change.
In addition, Isolator++ has the ability to handle C and C++ development paradigm features and common practices. For example, many functions in C/C++ don’t just return values, but also use parameters that are passed by reference to return values.
Conditional behaviour faking
Isolator++ can mock the functions and simulate returning values by reference, as if the code actually ran and returned them. It can also verify that the correct values where passed and/or returned
“As the gap between the number of C/C++ developers and .NET unit testing narrows, we continue to improve our tool,” said Eli Lopian, CEO and founder of Typemock. “The future of C/C++ is strong and now software written in C or C++ can be built with agility.”