On 13 Jul 2015, at 13:12, Torsten Bergmann <astares@gmx.de> wrote:
When in Java I use EclEmma - an eclipse plugin where once can see the coverage down to the code editor: http://www.eclemma.org/images/screen.png
I know there is Hapao: http://hapao.dcc.uchile.cl/ but is there a Pharo coverage visualization down to the method level as in EclEmma?
The idea is that this will be easy with reflectivity⦠e.g. (green with some tiny fixes to be committed): testCoverageAST | link | â virtual meta object: itâs the node where the link is installed onâ link := MetaLink new metaObject: #node; selector: #tagExecuted. âset this link on all the AST nodes" (ReflectivityExamples>>#exampleMethod) ast nodesDo: [:node | node link: link]. âyeah, works!" self deny: (ReflectivityExamples>>#exampleMethod) ast hasBeenExecuted. self assert: ReflectivityExamples new exampleMethod = 5. self assert: (ReflectivityExamples>>#exampleMethod) ast hasBeenExecuted. self assert: (ReflectivityExamples>>#exampleMethod) sendNodes first hasBeenExecuted. The ârealâ version would not install links on all nodes but select a subset, and, more importantly, with remove the link after it got invoked. And of course there needs to be a syntax colorer that looks at the #hasBeenExecuted annotation. Marcus