Hi,

I'm a bit tired to repeat that POM alone is never enough to reproduce 
problem and hence almost never enough to understand/guess what's wrong - 
see here https://groups.google.com/d/msg/jacoco/5-Kwo2s2u9A/QHDqnkTkAwAJ 
and there https://groups.google.com/d/msg/jacoco/8FWk3_nAlkM/tOsFasR-CwAJ , 
etc.

But ok, let's try to guess based on 
http://www.jacoco.org/jacoco/trunk/doc/faq.html :

Why does the coverage report not show line coverage figures?
JaCoCo is based on class files analysis. To calculate line coverage class 
files must contain line number attributes. For this *your code must be 
compiled with debug information*.



On Friday, March 30, 2018 at 7:53:10 PM UTC+2, [email protected] wrote:
>
> Hello Evgeny,
> Would it be possible for you to take a look at the POM. I tried using 
> maven-antrun-plugin but am still not seeing line level coverage:
>
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";
>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/maven-v4_0_0.xsd";>
>
>     <modelVersion>4.0.0</modelVersion>
>
>     <groupId>org.abc.qe</groupId>
>     <artifactId>test-JaxRS</artifactId>
>     <packaging>jar</packaging>
>     <version>0.0.1-SNAPSHOT</version>
>     <name>JaxRsAppTest</name>
>
>     <build>
>         <finalName>JaxRsAppTest</finalName>
>         <plugins>
>             <plugin>
>                 <groupId>org.jacoco</groupId>
>                 <artifactId>jacoco-maven-plugin</artifactId>
>                 <version>0.7.9</version>
>                 <executions>
>                     <execution>
>                         <id>pre-integration-test</id>
>                         <phase>initialize</phase>
>                         <goals>
>                             <goal>prepare-agent</goal>
>                         </goals>
>                         <configuration>
>                             
> <destFile>${project.build.directory}/coverage-reports-test/jacoco-test-it.exec</destFile>
>                             <propertyName>failsafeArgLine</propertyName>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-antrun-plugin</artifactId>
>                 <version>1.7</version>
>                 <executions>
>                     <execution>
>                         <id>default-report</id>
>                         <phase>verify</phase>
>                         <goals>
>                             <goal>run</goal>
>                         </goals>
>                         <configuration>
>                             <target>
>                                 <taskdef name="report" 
> classname="org.jacoco.ant.ReportTask" classpathref="maven.plugin.classpath" 
> />
>                                 <report>
>                                     <executiondata>
>                                         <file 
> file="${project.build.directory}/coverage-reports-test/jacoco-test-it.exec" 
> />
>                                     </executiondata>
>                                     <structure name="Coverage">
>                                         <classfiles>
>                                             <fileset 
> dir="S:/JaxRsApp/Dev/dmahapat_JaxRsApp/target/classes"/>
>                                         </classfiles>
>                                         <sourcefiles encoding="UTF-8">
>                                             <fileset 
> dir="S:/JaxRsApp/Dev/dmahapat_JaxRsApp/src"/>
>                                         </sourcefiles>
>                                     </structure>
>                                     <check failonviolation="false" 
> violationsproperty="violation">
>                                         <!--<rule element="BUNDLE">
>                                             <limit counter="INSTRUCTION" 
> value="COVEREDRATIO" minimum="0.00" />
>                                         </rule>-->
>                                     </check>
>                                     <html 
> destdir="${project.build.directory}/jacoco-internal"/>
>                                 </report>
>                             </target>
>                         </configuration>
>                     </execution>
>                 </executions>
>                 <dependencies>
>                     <dependency>
>                         <groupId>org.jacoco</groupId>
>                         <artifactId>org.jacoco.ant</artifactId>
>                         <version>0.7.9</version>
>                     </dependency>
>                 </dependencies>
>             </plugin>
>
>            <plugin>
>                 <artifactId>maven-resources-plugin</artifactId>
>                 <version>3.0.2</version>
>                 <executions>
>                     <execution>
>                         <id>copy-resources</id>
>                         <phase>validate</phase>
>                         <goals>
>                             <goal>copy-resources</goal>
>                         </goals>
>                         <configuration>
>                             
> <outputDirectory>S:/JaxRsApp/Test/test-JaxRS/target/classes</outputDirectory>
>                             <resources>
>                                 <resource>
>                                     
> <directory>S:/JaxRsApp/Dev/dmahapat_JaxRsApp/target/classes</directory>
>                                     <filtering>false</filtering>
>
>                                 </resource>
>                             </resources>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-failsafe-plugin</artifactId>
>                 <version>2.20.1</version>
>                 <configuration>
>                     <argLine>${failsafeArgLine}</argLine>
>                     <includes>
>                         <include>**/*IntegrationTest.java</include>
>                     </includes>
>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <id>integration-tests</id>
>                         <phase>integration-test</phase>
>                         <goals>
>                             <goal>integration-test</goal>
>                             <goal>verify</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
>         </plugins>
>     </build>
>
>     <dependencies>
>         <dependency>
>             <groupId>junit</groupId>
>             <artifactId>junit</artifactId>
>             <version>4.12</version>
>             <scope>test</scope>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.httpcomponents</groupId>
>             <artifactId>httpclient</artifactId>
>             <version>4.3.5</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.httpcomponents</groupId>
>             <artifactId>httpmime</artifactId>
>             <version>4.5.3</version>
>         </dependency>
>         <dependency>
>             <groupId>com.fasterxml.jackson.core</groupId>
>             <artifactId>jackson-databind</artifactId>
>             <version>2.8.7</version>
>         </dependency>
>     </dependencies>
>     <properties>
>
>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>
>     </properties>
> </project>
>
>
> Many thanks in advance.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/d8cccea2-b48f-493e-b682-f16d727bed6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to