Qt Forum

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

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

    General and Desktop
    2
    7
    1630
    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.
    • V
      Vaquita Tim last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • V
          Vaquita Tim last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • V
              Vaquita Tim last edited by

              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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • V
                  Vaquita Tim last edited by

                  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 Reply Quote 0
                  • First post
                    Last post