Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Running Googletests problem
Forum Updated to NodeBB v4.3 + New Features

Running Googletests problem

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 293 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tmk_rudnicki
    wrote on last edited by
    #1

    I wrote 2 simple tests using TEST_F macro. When I run tests using 'Run Tests For Current File' it works (see first img). But if I try to use 'Run All Tests' or 'Run Selected Tests' with both tests chosen it prints warning message 'No tests found' (see 2nd img). What's weirder is that if I select just one test (first or second, doesn't matter) the 'Run Selected Tests' run a test properly.

    My setup:
    I'm using Virtual Machine with Ubuntu 18.04.4
    Qt Creator 4.11.2 based on Qt 5.14.2
    I cloned googletest repo and used option 'source googletest directory' while building the project
    I set up this machine 2 days ago so everything is fresh and up-to-date

    Can anybody help me?

    Thanks

    RunTests.png
    RunAllTests.png

    aha_1980A 1 Reply Last reply
    0
    • T tmk_rudnicki

      I wrote 2 simple tests using TEST_F macro. When I run tests using 'Run Tests For Current File' it works (see first img). But if I try to use 'Run All Tests' or 'Run Selected Tests' with both tests chosen it prints warning message 'No tests found' (see 2nd img). What's weirder is that if I select just one test (first or second, doesn't matter) the 'Run Selected Tests' run a test properly.

      My setup:
      I'm using Virtual Machine with Ubuntu 18.04.4
      Qt Creator 4.11.2 based on Qt 5.14.2
      I cloned googletest repo and used option 'source googletest directory' while building the project
      I set up this machine 2 days ago so everything is fresh and up-to-date

      Can anybody help me?

      Thanks

      RunTests.png
      RunAllTests.png

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @tmk_rudnicki,

      are your tests in a header file?

      What happens if you put them in a cpp file?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved