Re: [Dev] [C5] Jacoco reports are not generating for Pax-Exam Test cases
Krishantha and I were able to resolve this issue. The problem here was, since osgi-tests is a separate module, the jacoco plugin was unable to find the class files in core bundle for the report generation. Thanks Krishantha for the support given to resolve the issue. Regards, Aruna On Wed, Aug 26, 2015 at 4:30 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Aruna, Can you use Jacoco ReportGenerator class at [1] and parse your jacoco.exec file into it. By doing it we will be able to analyse what has been captured in data dump file. You better escalate the issue to Jacoco community in same time. Thanks, Krishantha. [1] http://www.eclemma.org/jacoco/trunk/doc/examples/java/ReportGenerator.java On Wed, Aug 26, 2015 at 2:04 PM, Aruna Karunarathna ar...@wso2.com wrote: Hi all, After integrating the pax-exam plugin to the kernel. Jacoco reports are not generated for the OSGi based tests. Following is the output I'm getting. --- jacoco-maven-plugin:0.7.5.201505241946:restore-instrumented-classes (default-restore-instrumented-classes) @ osgi-tests --- [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:report (default-report) @ osgi-tests --- [INFO] *Analyzed bundle 'WSO2 Carbon Kernel - OSGi Tests' with 0 classes* [INFO] [INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ osgi-tests --- [INFO] Building jar: /home/aruna/Desktop/pax-work/carbon-kernel/osgi-tests/target/osgi-tests-5.0.0-SNAPSHOT.jar [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:check (default-check) @ osgi-tests --- [INFO] Analyzed bundle 'WSO2 Carbon Kernel - OSGi Tests' with 0 classes [INFO] All coverage checks have been met. Following is the plugin I've used. I can see that jacoco.exec file contains some data. But the report is empty. Any thoughts whats causing this issue? plugin groupIdorg.jacoco/groupId artifactIdjacoco-maven-plugin/artifactId executions execution iddefault-prepare-agent/id goals goalprepare-agent/goal /goals configuration includes includeorg.wso2.carbon*/include /includes /configuration /execution execution configuration includes includeorg.wso2.carbon*/include /includes dataFiletarget/jacoco.exec/dataFile /configuration iddefault-report/id phaseprepare-package/phase goals goalreport/goal /goals /execution execution iddefault-check/id goals goalcheck/goal /goals configuration rules rule /rule /rules /configuration /execution /executions /plugin Regards, Aruna -- *Aruna Sujith Karunarathna *| Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middleware. -- *Aruna Sujith Karunarathna *| Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [C5] Jacoco reports are not generating for Pax-Exam Test cases
Hi all, After integrating the pax-exam plugin to the kernel. Jacoco reports are not generated for the OSGi based tests. Following is the output I'm getting. --- jacoco-maven-plugin:0.7.5.201505241946:restore-instrumented-classes (default-restore-instrumented-classes) @ osgi-tests --- [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:report (default-report) @ osgi-tests --- [INFO] *Analyzed bundle 'WSO2 Carbon Kernel - OSGi Tests' with 0 classes* [INFO] [INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ osgi-tests --- [INFO] Building jar: /home/aruna/Desktop/pax-work/carbon-kernel/osgi-tests/target/osgi-tests-5.0.0-SNAPSHOT.jar [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:check (default-check) @ osgi-tests --- [INFO] Analyzed bundle 'WSO2 Carbon Kernel - OSGi Tests' with 0 classes [INFO] All coverage checks have been met. Following is the plugin I've used. I can see that jacoco.exec file contains some data. But the report is empty. Any thoughts whats causing this issue? plugin groupIdorg.jacoco/groupId artifactIdjacoco-maven-plugin/artifactId executions execution iddefault-prepare-agent/id goals goalprepare-agent/goal /goals configuration includes includeorg.wso2.carbon*/include /includes /configuration /execution execution configuration includes includeorg.wso2.carbon*/include /includes dataFiletarget/jacoco.exec/dataFile /configuration iddefault-report/id phaseprepare-package/phase goals goalreport/goal /goals /execution execution iddefault-check/id goals goalcheck/goal /goals configuration rules rule /rule /rules /configuration /execution /executions /plugin Regards, Aruna -- *Aruna Sujith Karunarathna *| Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [C5] Jacoco reports are not generating for Pax-Exam Test cases
Hi Aruna, Can you use Jacoco ReportGenerator class at [1] and parse your jacoco.exec file into it. By doing it we will be able to analyse what has been captured in data dump file. You better escalate the issue to Jacoco community in same time. Thanks, Krishantha. [1] http://www.eclemma.org/jacoco/trunk/doc/examples/java/ReportGenerator.java On Wed, Aug 26, 2015 at 2:04 PM, Aruna Karunarathna ar...@wso2.com wrote: Hi all, After integrating the pax-exam plugin to the kernel. Jacoco reports are not generated for the OSGi based tests. Following is the output I'm getting. --- jacoco-maven-plugin:0.7.5.201505241946:restore-instrumented-classes (default-restore-instrumented-classes) @ osgi-tests --- [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:report (default-report) @ osgi-tests --- [INFO] *Analyzed bundle 'WSO2 Carbon Kernel - OSGi Tests' with 0 classes* [INFO] [INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ osgi-tests --- [INFO] Building jar: /home/aruna/Desktop/pax-work/carbon-kernel/osgi-tests/target/osgi-tests-5.0.0-SNAPSHOT.jar [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:check (default-check) @ osgi-tests --- [INFO] Analyzed bundle 'WSO2 Carbon Kernel - OSGi Tests' with 0 classes [INFO] All coverage checks have been met. Following is the plugin I've used. I can see that jacoco.exec file contains some data. But the report is empty. Any thoughts whats causing this issue? plugin groupIdorg.jacoco/groupId artifactIdjacoco-maven-plugin/artifactId executions execution iddefault-prepare-agent/id goals goalprepare-agent/goal /goals configuration includes includeorg.wso2.carbon*/include /includes /configuration /execution execution configuration includes includeorg.wso2.carbon*/include /includes dataFiletarget/jacoco.exec/dataFile /configuration iddefault-report/id phaseprepare-package/phase goals goalreport/goal /goals /execution execution iddefault-check/id goals goalcheck/goal /goals configuration rules rule /rule /rules /configuration /execution /executions /plugin Regards, Aruna -- *Aruna Sujith Karunarathna *| Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev