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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.5.1
    • Fix Version/s: Qt Creator 4.6.0-rc1
    • Component/s: Test Integration
    • Labels:
      None
    • Commits:
      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
        For Gerrit Dashboard: QTCREATORBUG-19912
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            cstenger Christian Stenger
            Reporter:
            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