Marc R. Hoffmann
Gilles J. Iachelini
Code coverage analysis gives project teams an idea about the quality of their test suites and uncovers poorly tested program code. If actively facilitated in a software project from the very beginning coverage analysis can also support and motivate the individual developer in writing effective unit tests. Recent tools like TPTP or the EclEmma plug-in bring Java code coverage directly into the Eclipse IDE and close a long outstanding gap in the open source tool stack.
In this tutorial the author of EclEmma introduces the basic concepts behind code coverage analysis and substantiates them with several Eclipse IDE based exercises. While the presented techniques and tools theoretically work for any Java application the focus is on testing Eclipse plug-ins and Eclipse/OSGi based applications.
To benefit from the hands-on exercises participants should bring their own laptop with a fresh Eclipse 3.3 workspace.
Marc works as an independent consultant and has been involved in the development of several commercial Eclipse/RCP based projects and software products since 2004. He is the author of the open source code coverage plug-in EclEmma (www.eclemma.org) which is nominated as a finalist in the 2008 Eclipse Community Awards.
Gilles is a software architect for the CSC located in Bern, Switzerland, working on a Client Application of a Realtime Disposition System for the Swiss Federal Railways (SBB) based on Eclipse RCP.