tests: improved tree logs settings, additional docs

This commit is contained in:
Oleg Agafonov 2023-10-18 12:01:37 +04:00
parent b1e33b73ee
commit ffa0a8079a

15
pom.xml
View file

@ -90,7 +90,7 @@
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<!-- tests runner --> <!-- test runner for maven, travis-ci (IDE uses own test runner) -->
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version> <version>3.1.2</version>
@ -130,23 +130,23 @@
<!-- **************** --> <!-- **************** -->
<!-- tree view report --> <!-- tree view report -->
<!-- **************** --> <!-- **************** -->
<!-- for full logs: use xmage.build.tests.treeViewRunnerShowAllLogs -->
<!-- for ai logs in ci build: use .travis/log4j.properties -->
<!-- for default maven logs: delete or comment all settings below -->
<consoleOutputReporter> <consoleOutputReporter>
<disable>true</disable> <disable>true</disable>
</consoleOutputReporter> </consoleOutputReporter>
<statelessTestsetInfoReporter <statelessTestsetInfoReporter
implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter"> implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
<theme>ASCII</theme> <theme>ASCII</theme>
<!-- print stack -->
<printStacktraceOnError>true</printStacktraceOnError> <printStacktraceOnError>true</printStacktraceOnError>
<printStacktraceOnFailure>true</printStacktraceOnFailure> <printStacktraceOnFailure>true</printStacktraceOnFailure>
<!-- print standard output -->
<printStdoutOnError>true</printStdoutOnError> <printStdoutOnError>true</printStdoutOnError>
<printStdoutOnFailure>true</printStdoutOnFailure> <printStdoutOnFailure>true</printStdoutOnFailure>
<printStdoutOnSuccess>false</printStdoutOnSuccess> <printStdoutOnSuccess>${xmage.build.tests.treeViewRunnerShowAllLogs}</printStdoutOnSuccess>
<!-- print error output -->
<printStderrOnError>true</printStderrOnError> <printStderrOnError>true</printStderrOnError>
<printStderrOnFailure>true</printStderrOnFailure> <printStderrOnFailure>true</printStderrOnFailure>
<printStderrOnSuccess>false</printStderrOnSuccess> <printStderrOnSuccess>${xmage.build.tests.treeViewRunnerShowAllLogs}</printStderrOnSuccess>
</statelessTestsetInfoReporter> </statelessTestsetInfoReporter>
<!-- for compatible with jacoco code coverage - argLine moved to properties section <!-- for compatible with jacoco code coverage - argLine moved to properties section
@ -245,6 +245,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format> <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format>
<!-- logs settings for maven tests and travis ci builds -->
<xmage.build.tests.treeViewRunnerShowAllLogs>false</xmage.build.tests.treeViewRunnerShowAllLogs>
<!-- <!--
JaCoCo code coverage disabled by default. If you need to generate JaCoCo code coverage disabled by default. If you need to generate
execute stats and reports then run tests by maven command execute stats and reports then run tests by maven command