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

failures in gTest parameterized tests using ::testing::Combine() are not visualized correctly

    XMLWordPrintable

Details

    • f60641f3d3d6da91dcba8cbe2c531d529bfcbc47

    Description

      Failures in parameterized gTests using testing::Combine() are not visualized correctly (see the attached "fail (bug).png" screen shoot). I also attached the text output.

      Ex. test case (may need to force define GTEST_HAS_TR1_TUPLE=1 if using VS2017 to workaround a google test bug)

      struct Foo : public ::testing::TestWithParam<tuple<int, int>> {};

      TEST_P(Foo, Bar) {
          EXPECT_TRUE(false);
      }

      INSTANTIATE_TEST_CASE_P(Prefix, Foo,
        ::testing::Combine(
          ::testing::Values(1, 2),
          ::testing::Values(10, 20)));

       

       

      Attachments

        1. fail (bug).png
          fail (bug).png
          7 kB
        2. output.txt
          1 kB
        3. pass.png
          pass.png
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cstenger Christian Stenger
            lemo L M
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes