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? Thanks T. |
Hi, Marcus started to go in this direction (CoverageStyler). With MetaLinks we will be able to do that soon quite easily. I'm currently working on per-method coverage testing of the minimal Pharo - mainly because we need to know what tests that we already have need to be moved to this image. However in this case I export coverage result in form of one huge JSON document that will be processed by a single HTML page with a simple Smalltalk-like browser (with colored rows etc.). Currently we are able to check and show methods coverage using the code simulator (that doesn't work well with exceptions): Cheers, -- Pavel 2015-07-13 13:12 GMT+02:00 Torsten Bergmann <[hidden email]>: When in Java I use EclEmma - an eclipse plugin where |
In reply to this post by Torsten Bergmann
> On 13 Jul 2015, at 13:12, Torsten Bergmann <[hidden email]> 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 |
In reply to this post by Torsten Bergmann
Hello, for what i know right now, it doesn't seem to me that you can go to the line coverage with Hapao. You can know if a method is covered or not but not for te line inside it. You should ask to Alexandre Bergel about that. Regards,
--------------
Brice Govin
PhD student in RMoD research team at INRIA Lille Software Engineer at THALES AIR SYSTEMS Rungis ENSTA-Bretagne ENSI2014 64 chemin des boeufs 91220 PALAISEAU De : Torsten Bergmann [via Smalltalk] <ml-node+[hidden email]>
Envoyé : lundi 13 juillet 2015 12:49 À : Brice GOVIN Objet : Coverage tools 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? Thanks T. If you reply to this email, your message will be added to the discussion below:
http://forum.world.st/Coverage-tools-tp4837324.html
|
In reply to this post by Marcus Denker-4
Will be in the next update Marcus
|
Hapao does work at method level, but without reflectivity going further to AST level is not possible.
Alexandre is going to show in ESUG an integration of Hapao reports with EclEmma plugin for Jenkins and also a Roassal visualization of the Hapao report in the browser to be attached in Jenkins build. Cheers, Alejandro
|
In reply to this post by Marcus Denker-4
This is now in 50171 Marcus |
Free forum by Nabble | Edit this page |