[arquillian-issues] [JBoss JIRA] Commented: (ARQ-163) Support for code coverage via Emma / Cobertura

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Tue Jul 13 17:45:59 EDT 2010


    [ https://jira.jboss.org/browse/ARQ-163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12539090#action_12539090 ] 

Aslak Knutsen commented on ARQ-163:
-----------------------------------

Both Emma and Cobertura has the same basic issue; they rely on Shutdown hooks initialized via static code blocks with out any extension model to override. These Shutdown hooks dump data to disk on the container side. Arquillian need to transfer the coverage data back to the client and does not need the disk IO. Arquillian also deploy Emma/Cobertura as part of the deployment, which means adding Shutdownhooks leaks Classloaders etc on undeploy.

While Emma has not had a release in 5 years, Cobertura is an active code base.

note: Cobertura also has a bit to intrusive way of marking instrumented classes. It adds a HasBeenImplemented interface to the instrumented class. When using this with e.g. no-interface view EJB 3.1 beans you have to specify @LocalBean for it to work. Else the default behavior makes it a local interface bean instead since it now has a interface. It's a simple fix in the code base to switch from adding a interface to adding a field for instance.





> Support for code coverage via Emma / Cobertura
> ----------------------------------------------
>
>                 Key: ARQ-163
>                 URL: https://jira.jboss.org/browse/ARQ-163
>             Project: Arquillian
>          Issue Type: Feature Request
>            Reporter: Pete Muir
>            Assignee: Aslak Knutsen
>            Priority: Critical
>             Fix For: 1.0.0.Alpha3
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list