Hello
@Richard Huegill ,
ACE v12 does now have the option to add JUnit options when running tests: you can add
--test-junit-options "--reports-dir=/tmp/reports-dir"
to the run line and the server will create XML files in the specified directory.
To verify this using 12.0.5, I just cloned
https://github.com/tdolby-at-uk-ibm-com/ace-demo-sap-unittest and ran the build-and-ut.sh command in that repo, which creates a work directory and runs the tests. Those passed, so I then ran the test project again with the extra arguments for the IntegrationServer:
IntegrationServer -w /tmp/ace-demo-sap-work-dir --mq-queue-manager-name dummy --start-msgflows false --no-nodejs --admin-rest-api -1 --test-project SAPApplication_UnitTest --test-junit-options "--reports-dir=/tmp/reports-dir"
and it created a couple of XML files:
tdolby@IBM-LAPTOP:~/github.com/ace-demo-sap-unittest$ ls -l /tmp/reports-dir/*
-rw-rw---- 1 tdolby tdolby 12626 Sep 22 16:56 /tmp/reports-dir/TEST-junit-jupiter.xml
-rw-rw---- 1 tdolby tdolby 10937 Sep 22 16:56 /tmp/reports-dir/TEST-junit-vintage.xml
Other options also work, including
--config=junit.jupiter.execution.timeout.default=1ns
,
--include-package=other
,
--include-tag=firstTag
,
--include-classname=.+somestring.+
and the exclude variants, plus other options.
------------------------------
Trevor Dolby
------------------------------
Original Message:
Sent: Wed January 26, 2022 08:52 AM
From: Richard Huegill
Subject: IntegrationServer --test-project JUnit results formatting
Hey all,
When you run tests with "--test-project" is there any option to specify the output format and location for the results ?
When maven runs tests, surefire and safefire allow you to produce test reports in different formats:
JUnit Report Generation Example
Examples Java Code Geeks |
remove preview |
|
JUnit Report Generation Example |
In this example we shall show users how we can generate reports using the Maven and JUnit. JUnit Report Generation example demonstrates the basic usage of the reporting functionality of JUnit tests. As you already know, JUnit is the basic unit test framework for the Java programmers. |
View this on Examples Java Code Geeks > |
|
|
Are there any options with the "IntegrationServer" command ?
------------------------------
Richard Huegill
------------------------------