[jbosstools-issues] [JBoss JIRA] (JBIDE-10537) Support Code Coverage with Jacoco

Ondrej Zizka (JIRA) jira-events at lists.jboss.org
Wed Feb 1 04:07:48 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-10537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663270#comment-12663270 ] 

Ondrej Zizka edited comment on JBIDE-10537 at 2/1/12 4:06 AM:
--------------------------------------------------------------

**AS 7 testsuite JaCoCo**

Not yet in master, will go there after PR-1286 goes in. Until then:  https://github.com/OndraZizka/jboss-as/tree/TS-jacoco

Dev notes are here:
https://issues.jboss.org/browse/AS7-2022

In short: I wasn't able to propagate the property from jacoco:prepare-agent into surefire:test; so I hard-coded the property. It's not dynamic afterall so I'm good. I even consider removing jacoco:prepare-agent .

The report has to be done using ant plugin, since jacoco:report only looks into target/classes - can't go outside the current module.

And, since the task has some deps, I needed to put it to a .xml ant file (not sure if I fixed it somehow or not - see github).

HTH, Ondra


                
      was (Author: ozizka):
    **AS 7 testsuite JaCoCo**

Not yet in master, will go there after PR-1234 goes in. Until then:  https://github.com/OndraZizka/jboss-as/tree/TS-jacoco

Dev notes are here:
https://issues.jboss.org/browse/AS7-2022

In short: I wasn't able to propagate the property from jacoco:prepare-agent into surefire:test; so I hard-coded the property. It's not dynamic afterall so I'm good. I even consider removing jacoco:prepare-agent .

The report has to be done using ant plugin, since jacoco:report only looks into target/classes - can't go outside the current module.

And, since the task has some deps, I needed to put it to a .xml ant file (not sure if I fixed it somehow or not - see github).

HTH, Ondra


                  
> Support Code Coverage with Jacoco
> ---------------------------------
>
>                 Key: JBIDE-10537
>                 URL: https://issues.jboss.org/browse/JBIDE-10537
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: Build/Releng
>    Affects Versions: 3.3.0.M4
>         Environment: any
>            Reporter: Mickael Istria
>            Assignee: Mickael Istria
>         Attachments: JBIDE-10537.patch
>
>
> Jacoco Maven plugin allows to add very seamlessly code coverage while executing tests. Build should leverage this and get rid of additional build steps configured for emma plugin.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list