[jbosstools-issues] [JBoss JIRA] (JBIDE-16214) Code Coverage jobs needs to have locally available measured plugins

Vlado Pakan (JIRA) issues at jboss.org
Tue Jan 14 03:57:33 EST 2014


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

Vlado Pakan commented on JBIDE-16214:
-------------------------------------

Yes we use jacoco jenkins plugin for code coverage

Yes we publish code coverage results to sonar. It's requested by management

Steps I have done:

0. Compile all tests from <jbosstools-integrations-tests>/tests/
{noformat}
mvn clean install
{noformat}

1. Run maven build command  from <jbosstools-integrations-tests>/tests/org.jboss,tools.jsf.ui.bot.tests
{noformat}
mvn clean verify -Dswtbot.test.skip=false
{noformat}

2. Run groovy script from <jbosstools-integrations-tests>
{noformat}
groovy -cp ~/jacocogroovy/jacocoant.jar:~/jacocogroovy/ant.jar ~/jacocogroovy/jacoco.groovy org.jboss
{noformat}
Getting mentioned exception

3. Run groovy script from <jbosstools-integrations-tests>
{noformat}
groovy -cp ~/jacocogroovy/jacocoant.jar:~/jacocogroovy/ant.jar ~/jacocogroovy/jacoco.groovy org.jboss.tools
{noformat}
No exception

                
> Code Coverage jobs needs to have locally available measured plugins
> -------------------------------------------------------------------
>
>                 Key: JBIDE-16214
>                 URL: https://issues.jboss.org/browse/JBIDE-16214
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: build
>    Affects Versions: 4.1.1.CR1
>            Reporter: Vlado Pakan
>            Assignee: Mickael Istria
>             Fix For: 4.1.x
>
>
> Code Coverage calculating via maven build returns 0% coverage because it's using source code and binary plugins installed from update site.
> When these are built locally prior to build calculating code coverage it returns correct results.
> Unfortunately sometimes maven build used plugins installed from update site instead of those which are locally build.
> We need to find way how to fix this.
> It's already reported here https://bugs.eclipse.org/bugs/show_bug.cgi?id=352560

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list