Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved How to export unit test results of Qt Quick QML app in xunitxml format?

    QML and Qt Quick
    2
    2
    552
    Loading More Posts
    • 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.
    • ur2cdanger
      ur2cdanger last edited by

      I am new to Qt and QtQuick. I recently wrote an app that tests a functionality of a remote server. I wrote the app following tutorials and wrote unit test cases for the app. The unit test cases are exported in xml format. I have reached up to this point. I have not been able to proceed further. What I need to do more is

      • Export the results in xunitxml format.

      • Segregate the unit tests under different test suites. This way would give lot of leverage in arranging the tests.All I see in QML documentations are only Testcases and nothing is mentioned about Testsuites.

      Any help on these two questions would be really welcome. Thanks.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        You can have your tests output xUnit xml passing the -xunitxml option when running them.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post