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. QTest::qExec as QProcess
Forum Updated to NodeBB v4.3 + New Features

QTest::qExec as QProcess

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 434 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.
  • K Offline
    K Offline
    konserw
    wrote on last edited by
    #1

    Hello!
    I would like to use QtTest::qExec function instead of calling any "real" binary in QPRocess::start - is such thing possible? Should I subclass QProcess and override QProcess::start() ? How?
    Background:
    I'm implementing QtTest based driver for cucumber-cpp. My code can be found at github.
    Long story short I'm using QtTest to run tests written in gherkin which is used in BDD. Currently on POSIX systems I'm using pipes and on windows saving QtTest output to temporary file to read it again.
    I think that using QProcess qould be better to intercept output from QtTest, but qExec is not real executable to be used in QProcess::start, on the other hand it behaves much like standalone executable.
    Compiling each step into real binary executable is not an option.

    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