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. Unit test for multi processes applications
Qt 6.11 is out! See what's new in the release blog

Unit test for multi processes applications

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.3k Views 3 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.
  • mistralegnaM Offline
    mistralegnaM Offline
    mistralegna
    wrote on last edited by
    #1

    Hello all,

    I am currently looking for the good way to unit test an application (exactly it's a framework) that uses a multi processes approach.

    Does anyone know a good way/good framework to unit test such an application ?

    Thank you in advance!

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

      Hi,

      Can you describe what your framework does more precisely ?

      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
      • mistralegnaM Offline
        mistralegnaM Offline
        mistralegna
        wrote on last edited by
        #3

        Hello,

        The framework mainly starts processes (either on creation or on demand) and manages these processes. These processes are internal applications with different aims. Some of these application also can start another processes and manage them.

        Those applications communicate together using an IPC implementation (either with a QLocalServer/QLocalSocket or with TCP/IP).

        I would like to unit test:

        • Our IPC implementation
        • Our processes management system

        Thank you a lot in advance!

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

          The Qt Test Framework might be enough for your needs.

          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
          2
          • mistralegnaM mistralegna

            Hello,

            The framework mainly starts processes (either on creation or on demand) and manages these processes. These processes are internal applications with different aims. Some of these application also can start another processes and manage them.

            Those applications communicate together using an IPC implementation (either with a QLocalServer/QLocalSocket or with TCP/IP).

            I would like to unit test:

            • Our IPC implementation
            • Our processes management system

            Thank you a lot in advance!

            Paul ColbyP Offline
            Paul ColbyP Offline
            Paul Colby
            wrote on last edited by
            #5

            Hi @mistralegna,

            As @SGaist suggested, you can use the Qt Test Framework (just as you could use any other decent test framework).

            I would like to unit test:

            • Our IPC implementation
            • Our processes management system

            Since you're asking about unit testing here, not integration testing, I'd suggest that you mock out the "internal applications" with very simple Qt-based versions that the unit test application can then communicate with.

            Happy to expand on that if you like. If so, perhaps give us one example of an IPC request that would be tested, otherwise I'd just make up some "helloworld" scenario.

            Cheers.

            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