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): https://ci.inria.fr/pharo-contribution/view/Pharo-Kernel-2.0/job/PharoKernel... Cheers, -- Pavel 2015-07-13 13:12 GMT+02:00 Torsten Bergmann <astares@gmx.de>:
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.
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
On 13 Jul 2015, at 14:06, Marcus Denker <marcus.denker@inria.fr> wrote:
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):
https://pharo.fogbugz.com/f/cases/15963/Test-code-coverage-per-node <https://pharo.fogbugz.com/f/cases/15963/Test-code-coverage-per-node> 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
On Jul 13, 2015, at 9:33 AM, Marcus Denker <marcus.denker@inria.fr> wrote:
On 13 Jul 2015, at 14:06, Marcus Denker <marcus.denker@inria.fr <mailto:marcus.denker@inria.fr>> wrote:
On 13 Jul 2015, at 13:12, Torsten Bergmann <astares@gmx.de <mailto: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 <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):
https://pharo.fogbugz.com/f/cases/15963/Test-code-coverage-per-node <https://pharo.fogbugz.com/f/cases/15963/Test-code-coverage-per-node>
Will be in the next update
Marcus
On 13 Jul 2015, at 14:33, Marcus Denker <marcus.denker@inria.fr> wrote:
On 13 Jul 2015, at 14:06, Marcus Denker <marcus.denker@inria.fr <mailto:marcus.denker@inria.fr>> wrote:
On 13 Jul 2015, at 13:12, Torsten Bergmann <astares@gmx.de <mailto: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 <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):
https://pharo.fogbugz.com/f/cases/15963/Test-code-coverage-per-node <https://pharo.fogbugz.com/f/cases/15963/Test-code-coverage-per-node>
Will be in the next update
This is now in 50171 Marcus
participants (4)
-
Alejandro Infante -
Marcus Denker -
Pavel Krivanek -
Torsten Bergmann