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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important 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), 639e5007d (17.0)

      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.

       

        1. screenshot.png
          204 kB
          Luis Suarez
        For Gerrit Dashboard: QTCREATORBUG-32768
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes