You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Santhosh Kumar Edukulla (JIRA)" <ji...@apache.org> on 2014/04/24 08:55:14 UTC

[jira] [Commented] (CLOUDSTACK-6490) Integrate the code coverage with the new automation infra.

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-6490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13979364#comment-13979364 ] 

Santhosh Kumar Edukulla commented on CLOUDSTACK-6490:
-----------------------------------------------------

I have mentioned the instructions on 8th April as how to proceed with the "data collection" for code coverage. See the below mail. Once the data is collected, data analysis part is separate. This need to be done by individual who is doing the changes on infra.

==================

As well, once the coverage data file is created, we need to upload the exec file to the machine 10.223.240.154 with build, branch information.

Santhosh
________________________________________
From: Santhosh Edukulla
Sent: Tuesday, April 08, 2014 2:14 AM
To: Bharat Kumar
Subject: code coverage settings

Below are the steps required to enable coverage collection on the setup.

Step1 :Copy the jacoco.jar file ( i have this file) to the machine on Mgmt Server

Step2: Add the following flags to bashrc before running the management server.


#export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=500m -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -javaagent:/root/softwares/cscode/coverage/jacocoagent.jar=destfile=/tmp/results/jacoco_new.exec,append=true"

Step3: Add the following flags to mvn commands.

-Dmaven.compiler.debug=true
-Dmaven.compiler.debuglevel=lines,vars,source

> Integrate the code coverage with the new automation infra.
> ----------------------------------------------------------
>
>                 Key: CLOUDSTACK-6490
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6490
>             Project: CloudStack
>          Issue Type: New Feature
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Automation
>            Reporter: Bharat kumar
>            Assignee: Santhosh Kumar Edukulla
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)