Last active
June 19, 2024 13:01
-
-
Save kgsnipes/7399a76e30a538f03cf4eba25cb62522 to your computer and use it in GitHub Desktop.
maven junit surefire with reporting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>package</groupId> | |
<artifactId>artifact</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<properties> | |
<maven.compiler.source>17</maven.compiler.source> | |
<maven.compiler.target>17</maven.compiler.target> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.junit.jupiter</groupId> | |
<artifactId>junit-jupiter</artifactId> | |
<version>5.10.2</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>io.rest-assured</groupId> | |
<artifactId>rest-assured</artifactId> | |
<version>5.4.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>io.rest-assured</groupId> | |
<artifactId>json-path</artifactId> | |
<version>5.4.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>io.rest-assured</groupId> | |
<artifactId>json-schema-validator</artifactId> | |
<version>5.4.0</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>3.3.0</version> | |
<configuration> | |
<statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter"> | |
<disable>false</disable> | |
<version>3.0</version> | |
<usePhrasedFileName>false</usePhrasedFileName> | |
<usePhrasedTestSuiteClassName>true</usePhrasedTestSuiteClassName> | |
<usePhrasedTestCaseClassName>true</usePhrasedTestCaseClassName> | |
<usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName> | |
</statelessTestsetReporter> | |
<consoleOutputReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5ConsoleOutputReporter"> | |
<disable>false</disable> | |
<encoding>UTF-8</encoding> | |
<usePhrasedFileName>false</usePhrasedFileName> | |
</consoleOutputReporter> | |
<statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoReporter"> | |
<disable>false</disable> | |
<usePhrasedFileName>false</usePhrasedFileName> | |
<usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning> | |
<usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary> | |
</statelessTestsetInfoReporter> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-report-plugin</artifactId> | |
<version>3.3.0</version> | |
<configuration> | |
<outputName>new report name</outputName> | |
<linkXRef>false</linkXRef> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment