Skip to content
Snippets Groups Projects
Commit 8e45e917 authored by Martin Weise's avatar Martin Weise
Browse files

added coverage report to table service

parent 27ffd243
No related branches found
No related tags found
2 merge requests!81New stable release,!43Merge dev to master
...@@ -104,7 +104,7 @@ test-backend-table: ...@@ -104,7 +104,7 @@ test-backend-table:
- "./fda-table-service/rest-service/src/test/resources/integration-test.before" - "./fda-table-service/rest-service/src/test/resources/integration-test.before"
- "mvn -f fda-table-service/pom.xml clean test verify" - "mvn -f fda-table-service/pom.xml clean test verify"
- "./fda-table-service/rest-service/src/test/resources/integration-test.after" - "./fda-table-service/rest-service/src/test/resources/integration-test.after"
# - cat fda-table-service/rest-service/target/site/jacoco/index.html - cat ./fda-table-service/report/target/site/jacoco-aggregate/index.html
needs: needs:
- build-metadata-db - build-metadata-db
dependencies: dependencies:
......
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
<exclude>at/tuwien/mapper/**/*</exclude> <exclude>at/tuwien/mapper/**/*</exclude>
<exclude>at/tuwien/exception/**/*</exclude> <exclude>at/tuwien/exception/**/*</exclude>
<exclude>at/tuwien/config/**/*</exclude> <exclude>at/tuwien/config/**/*</exclude>
<exclude>**/FdaQueryServiceApplication.class</exclude> <exclude>**/FdaContainerManagingApplication.class</exclude>
</excludes> </excludes>
</configuration> </configuration>
<executions> <executions>
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>at.tuwien</groupId>
<artifactId>fda-database-service</artifactId> <artifactId>fda-database-service</artifactId>
<groupId>at.tuwien</groupId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
......
...@@ -11,9 +11,10 @@ RUN mvn -fn -B dependency:go-offline > /dev/null ...@@ -11,9 +11,10 @@ RUN mvn -fn -B dependency:go-offline > /dev/null
COPY --from=dependency /root/.m2/repository/at/tuwien /root/.m2/repository/at/tuwien COPY --from=dependency /root/.m2/repository/at/tuwien /root/.m2/repository/at/tuwien
COPY ./gateways ./gateways COPY ./gateway ./gateway
COPY ./rest-service ./rest-service COPY ./rest-service ./rest-service
COPY ./services ./services COPY ./services ./services
COPY ./report ./report
RUN mvn -q clean package -DskipTests RUN mvn -q clean package -DskipTests
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<artifactId>gateways</artifactId> <artifactId>gateway</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>fda-table-service-gateways</name> <name>fda-table-service-gateways</name>
......
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
<modules> <modules>
<module>rest-service</module> <module>rest-service</module>
<module>services</module> <module>services</module>
<module>gateways</module> <module>gateway</module>
<module>report</module>
</modules> </modules>
<properties> <properties>
...@@ -169,6 +170,37 @@ ...@@ -169,6 +170,37 @@
</dependency> </dependency>
</dependencies> </dependencies>
<!-- build in ./rest-service/pom.xml --> <build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<configuration>
<excludes>
<exclude>at/tuwien/mapper/**/*</exclude>
<exclude>at/tuwien/exception/**/*</exclude>
<exclude>at/tuwien/utils/**/*</exclude>
<exclude>**/FdaTableServiceApplication.class</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> </project>
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>fda-table-service</artifactId>
<groupId>at.tuwien</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>report</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>fda-database-service-report</name>
<properties>
<jacoco.version>0.8.7</jacoco.version>
</properties>
<dependencies>
<dependency>
<groupId>at.tuwien</groupId>
<artifactId>gateway</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>at.tuwien</groupId>
<artifactId>rest-service</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>at.tuwien</groupId>
<artifactId>services</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
...@@ -34,31 +34,6 @@ ...@@ -34,31 +34,6 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<configuration>
<excludes>
<exclude>**/FdaTableServiceApplication.class</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment