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. [Solved][ish] QTest output not showing in vs2013 output window
QtWS25 Last Chance

[Solved][ish] QTest output not showing in vs2013 output window

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 2.1k 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.
  • V Offline
    V Offline
    Vaquita Tim
    wrote on last edited by
    #1

    Previously, with Qt5.1, in vs2013 IDE, I had my project set up to run the test exe as a post-build event (in the vs2013 settings) and the QTest console output would appear in the vs Output-Build window. Thus it was a pretty convenient one command process to build and test.

    Now I've (finally) migrated to Qt5.3, the QTest console output doesn't appear. I don't know where it goes. I get output from a couple of file copies that I also do as part of the "post-build event". And I'm pretty sure the test is running, since there's a pause in the build window output (unless I remove the command to run the test). Of course the test itself runs fine if I run it independently - but that means pressing another button ! (shock !).

    So, of course this is a no biggy, but if anyone knows what changed, or what I might do to fix it easily... (naturally, had it never worked in the first place, I would never ask, but since it was working before it rankles somewhat...)

    Edit:- Well, I've got it working now by sending the QTest output to a file, then calling "type output.txt". But it's a bit of a workaround if you ask me

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Sounds like a regression, you should check the "bug report system":http://bugreports.qt-project.org to see if it's something known

      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
      0
      • V Offline
        V Offline
        Vaquita Tim
        wrote on last edited by
        #3

        bq. Sounds like a regression

        Right. I couldn't see anything, so I logged it as a bug. I suspect not so many people are using both MSVC and TestLib :-)

        There's a very faint bell ringing in my head about windows and stdout behaving oddly, but that was many years ago...

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Might be indeed

          Could you also share the bug report link ? So if others hit the same problem they may find it more easily

          That bell must not be false

          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
          0
          • V Offline
            V Offline
            Vaquita Tim
            wrote on last edited by
            #5

            Sorry - yes - the link is "here":https://bugreports.qt-project.org/browse/QTBUG-41239http://

            bq. bell must not be false

            You don't know my Brain like I do... Still, Windows.....

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              The thing is that you're not alone with this one faint bell :)

              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
              0
              • V Offline
                V Offline
                Vaquita Tim
                wrote on last edited by
                #7

                In case anyone else is having this kind of problem, take a look at the bug report "here":https://bugreports.qt-project.org/browse/QTBUG-41239
                If you sort out a nicer fix (i.e. you know how to redirect std streams in Windows) then let me know :-)

                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