You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/08/04 13:02:45 UTC
[camel] branch main updated: (chores) camel-quickfix: fix test log output to stdout (#11002)
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 4b5ea2bb436 (chores) camel-quickfix: fix test log output to stdout (#11002)
4b5ea2bb436 is described below
commit 4b5ea2bb436618533710ee8e7bfccb20dc76bd00
Author: Otavio Rodolfo Piske <or...@users.noreply.github.com>
AuthorDate: Fri Aug 4 15:02:38 2023 +0200
(chores) camel-quickfix: fix test log output to stdout (#11002)
---
components/camel-quickfix/pom.xml | 22 +++++++++++++++++++++-
.../src/test/resources/examples/gateway.qf.cfg | 1 +
.../src/test/resources/examples/inprocess.qf.cfg | 1 +
3 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/components/camel-quickfix/pom.xml b/components/camel-quickfix/pom.xml
index aa87dd8c153..96a99a18d06 100644
--- a/components/camel-quickfix/pom.xml
+++ b/components/camel-quickfix/pom.xml
@@ -17,7 +17,8 @@
limitations under the License.
-->
-<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/maven-v4_0_0.xsd">
+<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
@@ -81,4 +82,23 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!--
+ These tests generate a lot of bogus output and the logging does not work.
+ This forces the output to be stored in separate files in the target directory.
+ -->
+ <redirectTestOutputToFile>true</redirectTestOutputToFile>
+ <systemPropertyVariables>
+ <visibleassertions.silence>true</visibleassertions.silence>
+ </systemPropertyVariables>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
diff --git a/components/camel-quickfix/src/test/resources/examples/gateway.qf.cfg b/components/camel-quickfix/src/test/resources/examples/gateway.qf.cfg
index 3adaf37cbad..66b86e78b41 100644
--- a/components/camel-quickfix/src/test/resources/examples/gateway.qf.cfg
+++ b/components/camel-quickfix/src/test/resources/examples/gateway.qf.cfg
@@ -23,6 +23,7 @@ SocketAcceptProtocol=VM_PIPE
SocketAcceptPort=7001
SocketConnectProtocol=VM_PIPE
SocketConnectPort=7001
+FileLogPath=target/log
#
# Initiator for simulating trader #1
diff --git a/components/camel-quickfix/src/test/resources/examples/inprocess.qf.cfg b/components/camel-quickfix/src/test/resources/examples/inprocess.qf.cfg
index 67296362777..ae3448525b5 100644
--- a/components/camel-quickfix/src/test/resources/examples/inprocess.qf.cfg
+++ b/components/camel-quickfix/src/test/resources/examples/inprocess.qf.cfg
@@ -23,6 +23,7 @@ UseJmx=Y
SocketAcceptProtocol=VM_PIPE
SocketConnectProtocol=VM_PIPE
HeartBtInt=120
+FileLogPath=target/log
#
# Initiator for simulating a trader