[fpc-pascal] New stylesheet for fpcunit xml reports

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Feb 9 08:43:49 CET 2007


On 2/8/07, Vincent Snijders <vsnijders at quicknet.nl> wrote:
>
> No, I used unmodified fpc and the lazarus changes (a modified console test runner)
> are in svn too.

How sure are you?  :-)  I followed your instructions and this is the
xml 'runtests' generated.

---------------------------------
<?xml version="1.0"?>

<TestResults>

  <!-- Generated using FPCUnit on 2007-02-08 16:58:31-->

  <TestListing>

    <TestSuite Name="Examples"/>

    <TestSuite Name="address_book/addrbook.lpi">

      <Test Name="address_book/addrbook.lpi.TestCompile">

        <ElapsedTime>00:00:04.535</ElapsedTime>

      </Test>

    </TestSuite>

    <TestSuite Name="anchordocking/docking1.lpi">

      <Test Name="anchordocking/docking1.lpi.TestCompile">

        <ElapsedTime>00:00:03.458</ElapsedTime>

      </Test>

    </TestSuite>

    <TestSuite Name="autosize/childsizinglayout/childsizinglayout.lpi">

      <Test Name="autosize/childsizinglayout/childsizinglayout.lpi.TestCompile">

        <ElapsedTime>00:00:05.652</ElapsedTime>

      </Test>

    </TestSuite>
....snip.....
----------------------------------

>
> You can get the results by compiling lazarus with fpc 2.1.1 and make sure the used
> compiler is in the environment

I always work with FPC 2.1.1 and latest Lazarus (svn).  I get a update
once a week for both projects.  I also did a 'svn status' in the
fpc/src/fcl/fpcunit directory to be sure I don't have a modified set
of files, which I don't.

> (Assuming linux path seperator, follow the next steps)
> Go to the lazarus/test directory.
> ../lazbuild runtests.lpi
> ./runtests -a -p --file=results.xml

I tried the 'runtestsgui' as well, and it generated the same xml as
show above.  I remember Dean posted to a select few a preliminary set
of code changes for us to review, and mentioned in that post about a
new feature of nested test suites.  I double checked, those changes
were never committed to SubVersion.

My daily build server for tiOPF's unit tests also run on the latest
FPC and Lazarus an it's xml is also in the old format (as show above).

http://opensoft.homeip.net/tiopf/fpcunit/results.xml
http://opensoft.homeip.net/tiopf/fpcunit/index.html


-- 
Graeme Geldenhuys

There's no place like S34° 03.168'  E018° 49.342'



More information about the fpc-pascal mailing list