Skip to content

Commit 5c6c875

Browse files
committed
Add unit testing dependencies and plugins
1 parent 5648eb1 commit 5c6c875

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

pom.xml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<openjfx.version>16</openjfx.version>
2222
<ikonli.version>12.2.0</ikonli.version>
2323
<jaxb.version>2.3.2</jaxb.version>
24+
<jacoco.version>0.8.7</jacoco.version>
25+
<logunit.version>1.1.0</logunit.version>
2426
</properties>
2527

2628
<organization>
@@ -242,6 +244,42 @@
242244
<version>${openjfx.version}</version>
243245
<scope>provided</scope>
244246
</dependency>
247+
<!-- Add test dependencies -->
248+
<dependency>
249+
<groupId>io.github.netmikey.logunit</groupId>
250+
<artifactId>logunit-core</artifactId>
251+
<version>${logunit.version}</version>
252+
<scope>test</scope>
253+
</dependency>
254+
<dependency>
255+
<groupId>io.github.netmikey.logunit</groupId>
256+
<artifactId>logunit-logback</artifactId>
257+
<version>${logunit.version}</version>
258+
<scope>test</scope>
259+
</dependency>
260+
<dependency>
261+
<groupId>org.junit.jupiter</groupId>
262+
<artifactId>junit-jupiter-api</artifactId>
263+
<version>${junit-jupiter.version}</version>
264+
<scope>test</scope>
265+
</dependency>
266+
<dependency>
267+
<groupId>org.junit.jupiter</groupId>
268+
<artifactId>junit-jupiter-engine</artifactId>
269+
<version>${junit-jupiter.version}</version>
270+
<scope>test</scope>
271+
</dependency>
272+
<dependency>
273+
<groupId>org.springframework.boot</groupId>
274+
<artifactId>spring-boot-starter-test</artifactId>
275+
<scope>test</scope>
276+
</dependency>
277+
<dependency>
278+
<groupId>org.testfx</groupId>
279+
<artifactId>testfx-junit5</artifactId>
280+
<version>4.0.16-alpha</version>
281+
<scope>test</scope>
282+
</dependency>
245283

246284
</dependencies>
247285

@@ -430,9 +468,42 @@
430468
</execution>
431469
</executions>
432470
</plugin>
471+
<!-- Test reporting -->
472+
<plugin>
473+
<artifactId>maven-surefire-plugin</artifactId>
474+
<version>${maven-surefire-plugin.version}</version>
475+
</plugin>
476+
<plugin>
477+
<groupId>org.jacoco</groupId>
478+
<artifactId>jacoco-maven-plugin</artifactId>
479+
<version>${jacoco.version}</version>
480+
<executions>
481+
<execution>
482+
<goals>
483+
<goal>prepare-agent</goal>
484+
</goals>
485+
</execution>
486+
<execution>
487+
<id>report</id>
488+
<phase>test</phase>
489+
<goals>
490+
<goal>report</goal>
491+
</goals>
492+
</execution>
493+
</executions>
494+
</plugin>
433495
</plugins>
434496
</build>
435497

498+
<reporting>
499+
<plugins>
500+
<plugin>
501+
<groupId>org.jacoco</groupId>
502+
<artifactId>jacoco-maven-plugin</artifactId>
503+
<version>${jacoco.version}</version>
504+
</plugin>
505+
</plugins>
506+
</reporting>
436507
<repositories>
437508
<repository>
438509
<id>central</id>

0 commit comments

Comments
 (0)