Case Study: GARAIO Code Coverage Up To 75%
Founded in 1994, GARAIO AG develops and provides software solutions based on Microsoft technologies. As one of the few of Switzerland’s Microsoft Gold Certified partners, the company provides its wide range of solutions to middle to large-size enterprises and to public administrations. “One of the tools we tested would work on well designed applications, but Typemock was the only one that could test an application that was not designed with testing in mind.” Jörg Jenni, Senior Software Architect, GARAIO AG. GARAIO implements test driven development (TDD) as they found it to be much faster and enforceable than any other development methodology. Not only do the company’s senior developers take advantage of mocking techniques, but they also motivate junior developers to use it in their daily testing tasks. “We can now test more efficiently components that do not have a testable design. With the help of Typemock, we managed to reduce our test setup code dramatically.” Marco Studer, Senior Software Developer, GARAIO AG GARAIO first tested other solutions but found their behavior inconsistent and that they significantly affected their system design. For example, one of the tools they tried forced them to change the properties of their classes to virtual properties to facilitate mocking. Discovering Typemock Isolator “One of the tools we tested would work on well designed applications, but Typemock was the only one that could test an application that was not designed with testing in mind.” Jörg Jenni, Senior Software Architect, GARAIO AG. Results “While we have not yet invested resources in quality metrics, we firmly believe that Typemock Isolator enables us to release products that comply with the high standards of quality our company is committed to.” Christoph Hilty, Software Developer, GARAIO AG.
With Typemock Isolator
The Company
GARAIO boasts years of expertise and vast knowledge in the implementation and development of Microsoft-based projects adapted to the individual needs of each customer. GARAIO attaches great importance to the quality of its developments, and it is the company’s vision to be leader in technology-rich projects for today’s complex market requirements.
TDD Challenge
Since GARAIO introduced TDD, they faced several problems. A major difficulty was dealing with dependencies during unit testing, which proved to be too complex and costly to maintain. GARAIO discovered that they had to break up test dependencies by mocking all objects that were not subject to a particular test. Since both .NET and C# can’t do this, they began searching for a mocking solution.
Other Solutions Failed to Rise to the Challenge
GARAIO wanted to unit test their code without significantly increasing the number of developers conducting the tests. What the company did change, however, was their test coverage and the importance they attached to unit testing. With Typemock’s Isolator, GARAIO’s team of six finds unit testing a natural part of their work routine, while other teams in the company are still struggling to introduce the TDD way of developing.
Facts and Figures
Today, GARAIO fully implements TDD with Isolator, without exception. In addition to reducing the lines of code necessary to set up mocks and tests, the company has substantially reduced mocking and testing costs. Moreover, developers can now implement straightforward mocking, without having to spend time on interfaces or virtual components.
Typemock Isolator for .NET unit testing enables GARAIO’s developers to focus their energy on developing quality code. The Isolator technology isolates code such that it is no longer necessary to refactor or restructure code to make it testable.
There is no doubt that Isolator enables GARAIO’s developers to meet the uncompromising standards of quality to which the Swiss company is committed. The introduction of Typemock’s Isolator into their R&D department is in line with the company’s vision of adapting the newest and most innovative technologies into their projects and solutions.