Running tests in batch mode is achived by using msbuild test tasks.
This is usefull in CI Tools like Jenkins since they can read this xml files and show test cases reports containing failed assertions.
Anytime you run a test using msbuild task, you can add an extra task to see test results in XML JUnit format:
<Output TaskParameter="JUnitTestFilePath" PropertyName="JUnitTestFilePathOutput" />
This will create an xml file with the name TestResultJUnityyyy-dd-mm--hh-mm-ss.xml containing test results.
Note: This task needs to run over a previously opened KB after running test cases.
This example uses GXtest.msbuild file (usually located on GeneXus IDE root folder).
Before start, make sure you install Junit reporting plugin in Jenkins located here.
Add JUnitTestFilePath parameter in msbuild:
Make sure that Jenkin's user has write privileges over the folder you want to store your test results.
Use the Junit plugin pointing to previously used folder (in the example it is using WORKSPACE Jenkins folder):
You will start viewing Test results :