Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-351

Parse data tag from message type of testresult.xml

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Grafana / Test Results
    • None

    Description

      In the current version of test results parsing - data tag from messages are ignored.
      Only data tags from incidents are parsed.

      results.go:
      // IncidentHeader provides the fields that are common for Incident
      // and Message, basically the file name and line numbers of
      // where the message was produced or the incident happened.

      type IncidentHeader struct

      { Type string `xml:"type,attr"` File string `xml:"file,attr"` Line int `xml:"line,attr"` }

      type Message struct

      { IncidentHeader Description string }

      ---------------------------------------------------------------------------------

      Example of ignored data tag:

      example
      project: qt qsvg
      tst_QSvgDevice:

      void tst_QSvgDevice::play_data()

      { QTest::addColumn<QString>("tag name"); // we only use the tag name QTest::newRow( "lines" ); QTest::newRow( "font" ); QTest::newRow( "polyline" ); }

      void tst_QSvgDevice::play()

      { QSKIP("This test needs some redoing, this is just a temp measure until I work it out"); }

      generated xml result file:

      <TestFunction name="play">
      <Message type="skip" file="tst_qsvgdevice.cpp" line="364">
      <DataTag><![CDATA[lines]]></DataTag>
      <Description><![CDATA[This test needs some redoing, this is just a temp measure until I work it out]]></Description>
      </Message>
      <Message type="skip" file="tst_qsvgdevice.cpp" line="364">
      <DataTag><![CDATA[font]]></DataTag>
      <Description><![CDATA[This test needs some redoing, this is just a temp measure until I work it out]]></Description>
      </Message>

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jujokini Jukka Jokiniva
            anwojcie Anna Wojciechowska
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes