Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Separating data functions in Xunit format

Separating data functions in Xunit format

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 327 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Namox
    wrote on last edited by Namox
    #1

    Hi,

    I have several unit tests running some with various data functions, but when I pass the results to Xunit format with -xunitxml I lose all the data that I had about the data functions. Is there a way to keep the data functions as separate tests?

    PASS   : Foo::Bar(0)
    PASS   : Foo::Bar(1)
    

    this is showed as:

    ....
    <testcase result="pass" name="initTestCase"/>
    <testcase result="pass" name="Bar"/>
    <testcase result="pass" name="cleanupTestCase"/>
    ....
    

    And I would like it to show as:

    <testcase result="pass" name="initTestCase"/>
    <testcase result="pass" name="Bar(0)"/>
    <testcase result="pass" name="Bar(1)"/>
    <testcase result="pass" name="cleanupTestCase"/>
    

    Thank you in advance.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved