Separating data functions in Xunit format



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.