Hapao is a test coverage visualization tool created by the researchers Vanessa Pena and Alexandre Bergel and others in the Pleaid Group at the University of Chile. The Hapao tool uses the Class BluePrint metaphor from the suite of Polymetric Views to illustrate how the methods in a class have been covered during a set of tests. Hapao has been implemented in the Pharo programming language (similar to Smalltalk) and uses the Moose Software Analysis Platform.
The methods in the Test BluePrint visualization from the Hapao tool are represented as follows:
- height: the cyclometric complexity of a method
- width: the number of different methods that call the method
- shading: the number of times the method has been executed, the darker the more it has been executed
- red border: untested methods
- blue border: abstract methods
- green border: unit test methods
- edges: call flow between methods determined by static analysis
- Video illustrating Hapao in action.
- Vanessa Pena Araya, Alexandre Bergel, Test Coverage With Hapao, In Proceedings of the 5th Workshop on Dynamic Languages and Applications (Dyla’11), Collocated with TOOLS, June 2011.