gtester output and Bitten test report



Hi,

I wrote a trivial (Python) script to transform gtester output
into a Bitten test report. However, I'm not sure about the
correct mapping of elements. Maybe somebody has an idea?

I could not find a description of the gtester XML output, at
least glib does not contain a DTD or RNG, but that's how it
looks like:

<?xml version="1.0"?>
<gtester>
  <testbinary path="./binary-under-test">
    <binary file="./binary-under-test"/>
    <random-seed>Rsome-random-string</random-seed>
    <testcase path="/path/to/test">
      <duration>0.001</duration>
      <status exit-status="0" n-forks="0" result="success"/>
    </testcase>
    <duration>0.01</duration>
  </testbinary>
</gtester>

The source code contains also
<error>
<message>
<performance minimize= maximize= value= >

Bitten test reports are documented here:
http://bitten.edgewall.org/wiki/Documentation/reports.html#test-reports
and look like this:

<report category="test">
  <test>
    <duration>0.001</duration>
    <status>success</status>
    <name>test_name</name>
  </test>
</report>

OK, testcase/duration and testcase/status are easy, but is it
useful to map gtesters testcase path to Bittens test/name?

Thanks in advance!

PS: I will post the 20..30 lines script here, when it's ready.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]