diff --git a/README.md b/README.md index d4b9d21aff9993a5a4e3adfe35de19967df6c165..442512d98a978de40e962c488ce6131af4588769 100644 --- a/README.md +++ b/README.md @@ -95,23 +95,6 @@ To run tests, run the following command ```bash mvn clean test ``` +After running the tests a test coverage report will be produced. This report is located in the folder `target/site` When building through Docker Compose, Docker automatically runs the tests and stops the launching process at failures. - - -## Roadmap - -- Map feature - - -## Authors -- [Aune, Morten](https://gitlab.stud.idi.ntnu.no/morteaun) -- [Burmann, Henrik August](https://gitlab.stud.idi.ntnu.no/henriabu) -- [Hansen, Erik Borgeteien](https://gitlab.stud.idi.ntnu.no/erikbhan) -- [Hjelljord, Oda Alida Fønstelien](https://gitlab.stud.idi.ntnu.no/oahjellj) -- [Holthe, Aleksander Halvorsen](https://gitlab.stud.idi.ntnu.no/alekhal) -- [Kanter, Haakon Tideman](https://gitlab.stud.idi.ntnu.no/haakotka) -- [Kristiansen, Titus](https://gitlab.stud.idi.ntnu.no/titusk) -- [Mudassar, Zara](https://gitlab.stud.idi.ntnu.no/zaramu) -- [Røskaft, Håkon Eilertsen](https://gitlab.stud.idi.ntnu.no/haakoero) -- [Schrader, Sander August Heggland](https://gitlab.stud.idi.ntnu.no/saschrad) diff --git a/pom.xml b/pom.xml index c8ab470d34a28d4d29e394c3843d4da657f4d3ff..9099d5c2f386f7fbf032270913da1351ffcc6042 100644 --- a/pom.xml +++ b/pom.xml @@ -70,6 +70,13 @@ <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> + <!-- code coverage --> + <dependency> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.8</version> + <type>maven-plugin</type> + </dependency> <dependency> @@ -90,6 +97,28 @@ <artifactId>maven-resources-plugin</artifactId> <version>3.1.0</version> </plugin> + <!-- To produce code coverage reports --> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.8</version> + <executions> + <execution> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <!-- attached to Maven test phase --> + <execution> + <id>report</id> + <phase>test</phase> + <goals> + <goal>report</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> </build>