Unit test with profiler using ablunit - Forum - OpenEdge General - Progress Community

Unit test with profiler using ablunit

 Forum

Unit test with profiler using ablunit

This question is answered

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...

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

All Replies
  • 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

  • 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."

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