Skip to content

Commit

Permalink
SB-26954: Adding report coverge module
Browse files Browse the repository at this point in the history
  • Loading branch information
sknirmalkar89 committed Oct 26, 2021
1 parent 86cf418 commit 48813c2
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 4 deletions.
2 changes: 1 addition & 1 deletion all-actors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>org.sunbird</groupId>
<artifactId>notification-sdk</artifactId>
<version>1.0-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.everit.json</groupId>
Expand Down
2 changes: 1 addition & 1 deletion cassandra-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<dependency>
<groupId>org.sunbird</groupId>
<artifactId>notification-sdk</artifactId>
<version>1.0-SNAPSHOT</version>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion notification-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.sunbird</groupId>
<artifactId>notification-sdk</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
<packaging>jar</packaging>

<properties>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<version>0.8.4</version>
<configuration>
<destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
<dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>
Expand Down Expand Up @@ -75,5 +75,6 @@
<module>cassandra-utils</module>
<module>sb-telemetry-utils</module>
<module>sb-common</module>
<module>reports</module>
</modules>
</project>
59 changes: 59 additions & 0 deletions reports/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>notification-play-service</artifactId>
<groupId>org.sunbird</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>reports</artifactId>

<dependencies>
<dependency>
<groupId>org.sunbird</groupId>
<artifactId>all-actors</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.sunbird</groupId>
<artifactId>notification-service</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.sunbird</groupId>
<artifactId>sb-utils</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.sunbird</groupId>
<artifactId>notification-sdk</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>it-report</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
<configuration>
<dataFileIncludes>
<dataFileInclude>**/target/coverage-reports/jacoco-unit.exec</dataFileInclude></dataFileIncludes>
<outputDirectory>${basedir}/target/jacoco</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 48813c2

Please sign in to comment.