We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Users need to know to avoid Qt Test macros in this project: QCOMPARE, QVERIFY, QTRY_COMPARE and so on
QCOMPARE
QVERIFY
QTRY_COMPARE
This is because any test failures will be silently swallowed, when the main() is written for Catch2 and not QtTest.
So tests will spuriously pass.
Fabial Kosmale at Qt provided some sample code to detect this at compile-time, which I have added here:
claremacrae/supercollider/testsuite/editors/sc-ide/common_test_code/safe_qcompare.h
The text was updated successfully, but these errors were encountered:
t Add test that demos how QCOMPARE does not fail if called outside sl…
024aefa
…ot (#6)
F Add SafeQTestMacros.h to detect incorrect use of QCOMPARE (#6)
a29245a
This code was written by Fabian Kosmale at Qt in November 2019. It does not detect use of QVERIFY, QTRY_COMPARE and so on.
d Document work done on #6 - detecting QCOMPARE
d9910c6
Co-Authored-By: Llewellyn Falco <[email protected]>
There is a partial implementation of this, for QCOMPARE.
Sorry, something went wrong.
No branches or pull requests
Users need to know to avoid Qt Test macros in this project:
QCOMPARE
,QVERIFY
,QTRY_COMPARE
and so onThis is because any test failures will be silently swallowed, when the main() is written for Catch2 and not QtTest.
So tests will spuriously pass.
Fabial Kosmale at Qt provided some sample code to detect this at compile-time, which I have added here:
claremacrae/supercollider/testsuite/editors/sc-ide/common_test_code/safe_qcompare.h
The text was updated successfully, but these errors were encountered: