Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. How to Add CppUTest toexisting Qt 5 Project?

How to Add CppUTest toexisting Qt 5 Project?

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
2 Posts 2 Posters 556 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.
  • Q Offline
    Q Offline
    QtQrustacean
    wrote on last edited by
    #1

    I am trying to add CppUTest to a Qt5 project in Qt Creator 6.0.2. I have the CppUTest source code. I tried adding the .cpps to the project via

    Right Click >> Add Existing Directory

    and pointing

    INCLUDEPATH += ../../Shared/cpputest-3.8/include/

    to get the headers, however it still throws up compiler errors that make me think this is not set up correctly. Based on a similar question, that looks like it should be sufficient. (https://forum.qt.io/topic/84916/unit-testing-qt-code-with-cpputest/6)

    However, I am getting compile errors stating there are undefined references to the PlatformSpecific family of methods. Any suggestions? Ideally I'd appreciate a step by step guide on how to set a QT project up to use CppUTest, but so far I haven't found any.

    If it helps, in the cpputest-3.8/platforms/ folder, I see nothing for QT. There are folders for IAR, armcc, CCStudio, Dos, and Eclipse-Cygwin

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You need to link to the Cpputest libraries as well as explained in their documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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