Skip to content

Commit

Permalink
Update pom.xml to include junit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sutheo17 authored May 22, 2024
1 parent 1779f7b commit de97e5b
Showing 1 changed file with 15 additions and 52 deletions.
67 changes: 15 additions & 52 deletions Drumakomi_sivatag/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,15 @@
<groupId>org.example</groupId>
<artifactId>Drumakomi_sivatag</artifactId>
<version>1.0-SNAPSHOT</version>


<profile>
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<configuration>
<formats>
<format>XML</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<properties>
<maven.compiler.source>22</maven.compiler.source>
<maven.compiler.target>22</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sonar.organization>bme-mit-iet-org</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -89,23 +58,9 @@
<artifactId>cucumber-core</artifactId>
<version>7.18.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
</plugins>
</pluginManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -115,15 +70,23 @@
<release>11</release>
</configuration>
</plugin>
<!-- JUnit 5 requires Surefire version 2.22.1 or higher -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<configuration>
<includes>
<include>**/*Test.java</include>
<include>**/*Tests.java</include>
<include>**/*TestCase.java</include>
<include>**/*.feature</include>
</includes>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit4</artifactId>
<version>3.2.5</version>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-surefire-provider</artifactId>
<version>1.8.2</version>
</dependency>
</dependencies>
</plugin>
Expand Down

0 comments on commit de97e5b

Please sign in to comment.