From 0a807d1a0809a5ea2e01fe3856fe416a5c0ef984 Mon Sep 17 00:00:00 2001
From: Riegel <alexander.riegel@hft-stuttgart.de>
Date: Fri, 15 Nov 2024 14:23:56 +0100
Subject: [PATCH] Add Jacoco plugin for test coverage reports

---
 CityDoctorParent/pom.xml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/CityDoctorParent/pom.xml b/CityDoctorParent/pom.xml
index d037089..3d9249f 100644
--- a/CityDoctorParent/pom.xml
+++ b/CityDoctorParent/pom.xml
@@ -73,6 +73,26 @@
                 <artifactId>javafx-maven-plugin</artifactId>
                 <version>0.0.8</version>
             </plugin>
+            <plugin>
+                <groupId>org.jacoco</groupId>
+                <artifactId>jacoco-maven-plugin</artifactId>
+                <version>0.8.12</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>prepare-agent</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>report</id>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>report</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
         </plugins>
     </build>
     <dependencyManagement>
-- 
GitLab