Home

Michael Purwins

The Eclipse Graph Coverage Plugin was developed as part of my practicum for the Master of Software Engineering at Dublin City University. The practicum blog can be found here: http://student.computing.dcu.ie/blogs/mpurwins/


How to use the plugin

Creating control flow graphs:
When rightclicking a package in the Eclipse Explorer, a context menu will show up which contains an entry "Create CFGs". By clicking on this entry control flow graphs will be generated for all methods in this package.

Viewing control flow graphs:
The control flow graphs can be opened by doubleclicking on the control flow graph files in the cfg subdirectory of your project.

Profile test paths:
Two launch configuration types named "Graph Coverage" and "JUnit Graph Coverage" allow profiling the test paths. Create a launch configuration with one of these types and launch your project. The test paths will be saved in the cfg subdirectory of your project.

Show coverage information:
When test paths have been profiled, the outline window shows coverage information and allows highlighting unsatisfied test requirements.

Save the graph as ".png" image:
Rightclick inside the graph editor and select "Save as image".

This project is based on the Eclipse Control Flow Graph Generator (http://eclipsefcg.sourceforge.net/)