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

WARN() and FAIL() not reported correctly for Catch2

    XMLWordPrintable

Details

    • Linux/X11
    • f792dc0216fc1fdae1e9d4421ccb489cae2aac2f 09047d5a99dbc4ca47a001b6976f9d2432135811

    Description

      Explicit warnings and failures issued by user code are not reported in the test results (only in the xml output).

      e.g., I have the following code :

      #define CATCH_CONFIG_MAIN
      #include <catch2/catch.hpp>
      
      TEST_CASE("my test")
      {
          WARN("this message is not printed!");
          FAIL("neither this one..");
      }
      

      The failure and warning shows up in the XML, but not the graphical output in the Test Results (Alt+9). In fact, the results don't even show the failure (it looks like something crashed).

      All filters are checked (e.g., everything is supposed to show).

      Attachments

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

        Activity

          People

            cstenger Christian Stenger
            adamce Adam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes