Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32768

QT creator does not display tests results for code with cout output not ending in newline

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • Qt Creator 16.0.0
    • Test Integration
    • None
    • Repro in QCreator 16.0.0 in both Windows and Linux
    • All
    • d12b552f4 (17.0)

    Description

      Minimal repro project available in GitHub: LuisMSuarez/QT-bug-report

      If a test case (GTest, for example) invokes code (in the test case itself or in the production code being tested) that prints text to std::cout, where the text doesn't end in newline, then the test will be executed, but the test result will not appear in the QCreator UI under "Test Results".  This makes it impossible to know if the test case passed or failed.

      Refer to the attached screenshot.

      The project contains 3 tests, but the "Test Results" output only displays 2 tests.

      A workaround may not always be possible. 
      For example, if the code being tested comes from an external lib outside of the control of the programmer.

      The programmer may be puzzled as to why the test case did not execute and spend a lot of time trying to troubleshoot.

       

      Attachments

        Issue Links

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

          Activity

            People

              cstenger Christian Stenger
              luismsuarez Luis Suarez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes