Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to unit test the main Qt project using Qt test project

How to unit test the main Qt project using Qt test project

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 576 Views 2 Watching
  • 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.
  • S Offline
    S Offline
    shravan_121
    wrote on last edited by
    #1

    I am new to Qt and I want to unit test a existing Qt c++ project with Qt test project. Can any one explain me how can I automate the main project using Qt test project in qmake.

    Pablo J. RoginaP 1 Reply Last reply
    0
    • S shravan_121

      I am new to Qt and I want to unit test a existing Qt c++ project with Qt test project. Can any one explain me how can I automate the main project using Qt test project in qmake.

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @shravan_121 have you already checked the documentation?

      You can follow this tutorial about writing a unit test as well.

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

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

        Hi and welcome to devnet,

        Beside @Pablo-J-Rogina recommandations, what do you mean by automate ?

        If you have unit test projects properly setup then you can call make tests in your console to run the full test suite or if in Qt Creator, just run the unit test you are interested it like you would do for an application.

        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
        1

        • Login

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