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>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default-prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                        <configuration>
                            <includes>
                                <include>org.wso2.carbon*</include>
                            </includes>
                        </configuration>
                    </execution>
                    <execution>
                        <configuration>
                            <includes>
                                <include>org.wso2.carbon*</include>
                            </includes>
                            <dataFile>target/jacoco.exec</dataFile>
                        </configuration>
                        <id>default-report</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>default-check</id>
                        <goals>
                            <goal>check</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

Reply via email to