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. Testing Qt plugins
Forum Updated to NodeBB v4.3 + New Features

Testing Qt plugins

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.7k Views 1 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.
  • M Offline
    M Offline
    mbnoimi
    wrote on 6 Aug 2013, 14:37 last edited by
    #1

    Hello,

    What's best way to test Qt plugins which used for building Qt Application Plugin based?

    Usually I make my tests through the main GUI interface application but I wonder is there any way to run or test this kind of plugins from test interface instead of the main GUI interface?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Aug 2013, 15:55 last edited by
      #2

      Hi,

      What I do is to write a test suite using QTest within the plugin project to test everything.

      If things rely on a user interaction, I usually write a little test application for the functionality

      Hope it helps

      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
      • M Offline
        M Offline
        mbnoimi
        wrote on 6 Aug 2013, 21:33 last edited by
        #3

        bq. What I do is to write a test suite using QTest within the plugin project to test everything.

        I never used QTest before so I've to read about it now.

        Btw, Do you've any example or tutorial about how to use it in nutshell?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 7 Aug 2013, 08:23 last edited by
          #4

          It's really as simple as what the documentation shows.
          What I generally do is create a subfolder tests where all test resides. IIRC you can even create the test projects directly from QtCreator

          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
          • K Offline
            K Offline
            koahnig
            wrote on 7 Aug 2013, 08:25 last edited by
            #5

            A good start for me was creating a test project with creator.

            Create a new project in creator. Under "Other Porjects" there is "Qt Unit Test". The creation allows you to make a couple of choices. IMHO it is quite easy to start.

            There is a "testlib overview":http://qt-project.org/doc/qt-5.0/qttestlib/qtest-overview.html and "there is QTest tutorial":http://qt-project.org/doc/qt-5.0/qttestlib/qtest-tutorial.html

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0

            1/5

            6 Aug 2013, 14:37

            • Login

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