[ 
http://mifosforge.jira.com/browse/MIFOS-3913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63123#action_63123
 ] 

Kojo Gambrah-Sampaney commented on MIFOS-3913:
----------------------------------------------

To get mifos configured to run with jacoco, the module with the tests we want 
to get coverage for must be modified as follows;
1. Add the following argument to the failsafe plugin in the pom.xml of the 
module 
<argLine>-javaagent:${jacoco.agent.path}=destfile=${jacoco.file.path}</argLine>

2. Run the following command from mifos root folder - 
mvn -Djacoco.agent.path="PATH_TO_AGENT" -Djacoco.file.path="PATH_TO_DUMP" 
-Prun-its clean install

3. Execute the sonar goal in mifos root folder, specifying the coverage dump 
file as a parameter
 mvn -Dsonar.jacoco.itReportPath="PATH_TO_DUMP" sonar:sonar 
-Dsonar.dynamicAnalysis


> Configure JaCoCo java agent for mifos
> -------------------------------------
>
>                 Key: MIFOS-3913
>                 URL: http://mifosforge.jira.com/browse/MIFOS-3913
>             Project: mifos
>          Issue Type: Dev Task
>            Reporter: Kojo Gambrah-Sampaney
>


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

        

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to