mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
tests: replaced maven's test reporter from plain to tree (logs visible for failed tests only)
This commit is contained in:
parent
e53b0091d7
commit
b1e33b73ee
1 changed files with 34 additions and 2 deletions
36
pom.xml
36
pom.xml
|
|
@ -94,7 +94,18 @@
|
|||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.1.2</version>
|
||||
<dependencies>
|
||||
<!-- tree reporter deps -->
|
||||
<dependency>
|
||||
<groupId>me.fabriciorby</groupId>
|
||||
<artifactId>maven-surefire-junit5-tree-reporter</artifactId>
|
||||
<version>1.2.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<!-- ******************** -->
|
||||
<!-- default plain report -->
|
||||
<!-- ******************** -->
|
||||
<!--
|
||||
printSummary: print elapsed time and other stats per test file
|
||||
- if you disable this, you will not be able to trace the name of the test
|
||||
|
|
@ -116,6 +127,28 @@
|
|||
-->
|
||||
<useFile>false</useFile>
|
||||
|
||||
<!-- **************** -->
|
||||
<!-- tree view report -->
|
||||
<!-- **************** -->
|
||||
<consoleOutputReporter>
|
||||
<disable>true</disable>
|
||||
</consoleOutputReporter>
|
||||
<statelessTestsetInfoReporter
|
||||
implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
|
||||
<theme>ASCII</theme>
|
||||
<!-- print stack -->
|
||||
<printStacktraceOnError>true</printStacktraceOnError>
|
||||
<printStacktraceOnFailure>true</printStacktraceOnFailure>
|
||||
<!-- print standard output -->
|
||||
<printStdoutOnError>true</printStdoutOnError>
|
||||
<printStdoutOnFailure>true</printStdoutOnFailure>
|
||||
<printStdoutOnSuccess>false</printStdoutOnSuccess>
|
||||
<!-- print error output -->
|
||||
<printStderrOnError>true</printStderrOnError>
|
||||
<printStderrOnFailure>true</printStderrOnFailure>
|
||||
<printStderrOnSuccess>false</printStderrOnSuccess>
|
||||
</statelessTestsetInfoReporter>
|
||||
|
||||
<!-- for compatible with jacoco code coverage - argLine moved to properties section
|
||||
<argLine>-Dfile.encoding=UTF-8</argLine>
|
||||
-->
|
||||
|
|
@ -225,8 +258,7 @@
|
|||
|
||||
<!-- Sonar settings for code coverage. Must be only one report for all modules (use report-aggregate goal report from JaCoCo) -->
|
||||
<aggregate.report.dir>Mage.Verify/target/site/jacoco-aggregate/jacoco.xml</aggregate.report.dir>
|
||||
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../${aggregate.report.dir}
|
||||
</sonar.coverage.jacoco.xmlReportPaths>
|
||||
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../${aggregate.report.dir}</sonar.coverage.jacoco.xmlReportPaths>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue