I'm trying to switch to SmartUnit
Our ABLUnit used filesets, SmartUnit doesn't support the nested "fileset" element.
I was able to fix that with some help from codeium ;-)
<local name="test_files" />
<pathconvert pathsep="," property="test_files">
<fileset dir="${testproject}/tests" includes="**/Test*.cls" />
<fileset dir="${testproject}/tests" includes="**/Test*.p" />
</pathconvert>
<SmartUnit
testSuite="CceFramework Tests"
tests="${test_files}"
outputFile="output/smartunit.xml"
haltOnError="false"
forceXmlXref="false"
logFailedTests="true"
graphicalMode="false"
dlcHome="${progress.DLC}"
cpstream="utf-8"
cpinternal="utf-8"
compileUnderscore="true"
inputchars="200000"
catchStop="0">
<DBConnectionSet refid="${MetadataDBConnectionSetid}" />
<propath>
<pathelement path="${testproject}/tests" />
<path refid="PCTPropath" />
</propath>
<option name="-h" value="20" />
</SmartUnit>
SmartUnit finds 11 tests, but the resulting smartunit.xml does not contain any tests.
test_CceFramework:
[echo] Running tests from /usr2/cce/build/develop/git/lisabuilder/../ccesmarttools/TestCceFramework using PCTDBConnectionSet
[SmartUnit] catchStop attribute in ANT file is set to: 0
[SmartUnit] Processing fileset: /usr2/cce/build/develop/git/ccesmarttools/TestCceFramework/tests/be/cce/SmartTools/ControlReport/TestControlReport.cls,/usr2/cce/build/develop/git/ccesmarttools/TestCceFramework/tests/be/cce/SmartTools/OERA/TestCceFieldTypeDynamicBusinessEntityRepository.cls,/usr2/cce/build/develop/git/ccesmarttools/TestCceFramework/tests/be/cce/SmartTools/Query/TestQueryExpressionHelper.cls,/usr2/cce/build/develop/git/ccesmarttools/TestCceFramework/tests/be/cce/ccetools/base/TestDimensionProvider.cls,/usr2/cce/build/develop/git/ccesmarttools/TestCceFramework/tests/be/cce/ccetools/base/TestIPropertyCollection.cls,/usr2/cce/build/develop/git/ccesmarttools/TestCceFramework/tests/be/cce/ccetools/base/TestJsonPropertyCollection.cls,/usr2/cce/build/develop/git/ccesmarttools/TestCceFramework/tests/be/cce/ccetools/base/TestQueryHelper.cls,/usr2/cce/build/develop/git/ccesmarttools/TestCceFramework/tests/be/cce/ccetools/base/TestStringHelper.cls,/usr2/cce/build/develop/git/ccesmarttools/TestCceFramework/tests/be/cce/ccetools/base/TestTemptablePropertyCollection.cls,/usr2/cce/build/develop/git/ccesmarttools/TestCceFramework/tests/be/cce/ccetools/mq/TestMessagingServiceBroker.cls,/usr2/cce/build/develop/git/ccesmarttools/TestCceFramework/tests/be/cce/ccetools/tools/TestDbLisaPasswordService.cls
[SmartUnit] Number of Tests: 11
[SmartUnit] Finished Execute() CceFramework Tests
[SmartUnit] *********** RETURNING "0" ***********
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="CceFramework Tests" tests="0" failures="0" timestamp="2024-05-08T13:57:53.848+02:00">
</testsuite>
</testsuites>