Failure to invoke ABLUnit runtime

jl1

New Member
Hello,
I am new to ablunit and ant. I am getting the following error when I run one of my tests:
ablunit:
[mkdir] Skipping /backup/GitHub/pct/Results because it already exists.
[mkdir] Skipping /backup/GitHub/pct/work because it already exists.
[ablunit] Running /backup/GitHub/pct/tests/src/test.p
[ablunit] Failure to invoke ABLUnit runtime
[ablunit]

BUILD SUCCESSFUL
Total time: 50 seconds

My environment is Progress 11.7.3 on Oracle linux 64bit server. Ant version is 1.9.4.
PCT version is the latest: 216 (issue also occurred on 214).

build.xml:
XML:
<project name="OE" default="ablunit" basedir="/backup/GitHub/pct">
<property environment="env" />
<property name="DLC_HOME" value="/fiscal/dlc"/>
<property name="wrkdir" value="work"/>
<!-- Target for defining 'taskdef' -->
<target name="taskdef">
        <taskdef name="ablunit"
        classname="com.progress.openedge.ant.ablunit.ABLUnitTask"
                classpath="${DLC_HOME}\java\ant-ablunit.jar" />
</target>
<!-- Target for defining 'ablunit' -->
<target name="ablunit" depends="taskdef" description="runs unit tests">
        <mkdir dir="Results"/>
        <mkdir dir="work"/>
        <ablunit dlc="${DLC_HOME}" environment="tty"
printsummary="true" tempdir="${wrkdir}">
        <batchtest todir="Results">
                <fileset dir="tests" includes="**/*.p" />
                <fileset dir="tests" includes="**/*.i" />
        </batchtest>
       <dbinfo name="/fiscal/swstore.db" host="localhost" port="5522"/>
        <propath>
                <pathelement path="src" />
                <pathelement path="tests" />
                <pathelement location="${DLC_HOME}\tty\ablunit.pl" />
                <pathelement location="${DLC_HOME}\tty\OpenEdge.Core.pl" />
        </propath>
        </ablunit>
</target>
</project>

What am I missing here?
 
Last edited by a moderator:

Cringer

ProgressTalk.com Moderator
Staff member
The first thing I would try is making sure all your paths are defined in the xml with a forward slash not a backslash. Ant is quite picky about this, and Linux is very picky about this.
 

jl1

New Member
Good catch on the pathing. That was part of the problem. The port for the db was the other.
I now get:
[ablunit] OpenEdge Release 11.7.3 as of Fri Apr 27 16:18:52 EDT 2018
[ablunit]
[ablunit] Hello
[ablunit] world!
[ablunit]
[ablunit] Tests run: 0, Success: 0, Errors: 0, Failures: 0, Time elapsed: 0.001 sec

BUILD SUCCESSFUL
Total time: 0 seconds

Which looks good, except should I be expecting the tests run and success to be at one instead of zero?
 

Cringer

ProgressTalk.com Moderator
Staff member
Do your tests run outside of Ant? If not then I'd suggest it could be a problem with the annotations in the test classes.
 
Top