Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-124166

No output when running tests on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.1, 6.7.0 RC2
    • Testing: qtestlib
    • None
    • Windows

    Description

      When running a test executable (from Powershell) on Windows, no output is shown. Not even with the -v2 flag. Neither did help setting the QT_LOGGING_TO_CONSOLE environment variable.

      As soon as I connect the Visual Studio Debugger, the output gets logged to the Debug Console (not stdout).

      I've create a reproduction repository: https://github.com/jdoubleu/QtTestBug124166 . As you can see from the CI run on Windows, there's no output: https://github.com/jdoubleu/QtTestBug124166/actions/runs/8583319745/job/23530532183 (open the "Run Tests" step). While on Linux, there's one: https://github.com/jdoubleu/QtTestBug124166/actions/runs/8583319745/job/23522384067

       

      I've found these related issues:

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cnn Qt Core & Network
            jdoubleu jdoubleu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes