1
0

Add maven surefire plugin to run unit tests

This commit is contained in:
Thibaud Gasser 2018-11-21 21:06:40 +01:00
parent b46d155267
commit 3b3980e959

18
pom.xml
View File

@ -5,8 +5,11 @@
<modelVersion>4.0.0</modelVersion>
<properties>
<!-- https://maven.apache.org/general.html#encoding-warning -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<surefire.version>3.0.0-M1</surefire.version>
</properties>
<groupId>org.example</groupId>
@ -22,7 +25,7 @@
<repositories>
<repository>
<id>local-maven-repo</id>
<url>file:./lib/</url>
<url>file://${project.basedir}/lib/</url>
</repository>
</repositories>
@ -49,4 +52,15 @@
</dependency>
</dependencies>
</project>
<build>
<finalName>maven-unit-test</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.version}</version>
</plugin>
</plugins>
</build>
</project>