Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Question about Qt Test command line options

Question about Qt Test command line options

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 176 Views
  • 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.
  • B Offline
    B Offline
    Brynnjolf
    wrote on last edited by Brynnjolf
    #1

    Hey everyone!
    I am trying to run my test suite, and log the results in multiple formats. Here in the docs, it states that "The first version of the -o option may be repeated in order to log test results in multiple formats". However, when I try doing so, it only outputs one format.

    The syntaxes I have tried are:

    project.exe -RunTests -o test_results.xml,xml test_results.txt,txt
    project.exe -RunTests -o test_results.xml,xml -o test_results.txt,txt
    

    This results in only test_results.txt being produced in both cases.

    Any advice is welcome,

    Cheers!

    jsulmJ 1 Reply Last reply
    0
    • B Brynnjolf

      Hey everyone!
      I am trying to run my test suite, and log the results in multiple formats. Here in the docs, it states that "The first version of the -o option may be repeated in order to log test results in multiple formats". However, when I try doing so, it only outputs one format.

      The syntaxes I have tried are:

      project.exe -RunTests -o test_results.xml,xml test_results.txt,txt
      project.exe -RunTests -o test_results.xml,xml -o test_results.txt,txt
      

      This results in only test_results.txt being produced in both cases.

      Any advice is welcome,

      Cheers!

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Brynnjolf What happens if you only run

      project.exe -RunTests -o test_results.xml,xml
      

      (just to test)?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Brynnjolf
        wrote on last edited by
        #3

        Sorry for the late reply. It outputs the test results formatted as an xml.

        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