Unit test with profiler using ablunit

Posted by Anuj Jain on 25-Jul-2016 01:50

How can I use profiler tag inside ablunit tag of ANT Script.

<Profiler enabled="true" outputDir="profiler" coverage="true" listings="profiler" />

I want to do Unit test with profiler

I have found a solution with PCTRun
But i need to use it with ablunit as it is possible...

Posted by Riverside Software on 25-Jul-2016 04:09

You're probably using the ABLUnit task from Progress Developer Studio, not the one from PCT. Profiler is only supported under PCT.

All Replies

Posted by Riverside Software on 25-Jul-2016 02:53

ABLUnit inherits from PCTRun, as stated on the wiki page github.com/.../ABLUnit since 2 minutes :-)

You can directly include the <Profiler> option in your <ABLUnit> target

Posted by Anuj Jain on 25-Jul-2016 03:41

I have used <profiler> option directly but still i am getting error: "ablunit doesn't support the nested "Profiler" element."

<ablunit dlc="${DLC_HOME}" environment="gui" printsummary="true" haltonerror="yes " haltonfailure="yes" tempdir="${basedir}">

    <Profiler enabled="true" outputDir="profiler" coverage="true" listings="profiler" />  

    <batchtest todir="results">  

           <fileset dir="tests" includes="*.p" >    

              </fileset>

          </batchtest>

      <propath>

               <pathelement path="${basedir}" />            

               <pathelement location="${DLC_HOME}\gui\ablunit.pl" />

               <pathelement location="${DLC_HOME}\gui\OpenEdge.Core.pl" />

          </propath>  

    <Profiler enabled="true" outputDir="profiler" coverage="true" listings="profiler" />

   </ablunit>

Getting Error:

"ablunit doesn't support the nested "Profiler" element."

Posted by Riverside Software on 25-Jul-2016 04:09

You're probably using the ABLUnit task from Progress Developer Studio, not the one from PCT. Profiler is only supported under PCT.

This thread is closed