Important: Please read the Qt Code of Conduct -

Non-zero exit code from QSKIP()-ed tests

  • Is there any way to detected skipped tests and return a non-zero exit code? For example rather then using QTEST_MAIN maybe it's possible to call QTest::qExec yourself and then something like QTest::numSkipped() to then return your own exit code.

    This is needed to flag skipped tests on a CDash dashboard.


  • Lifetime Qt Champion


    Interesting use case, I'd recommend to post this question on the interest mailing list. You'll find Qt's developers/maintainers there (this forum is more user oriented)

Log in to reply