Open claremacrae opened 3 years ago
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
There is a partial implementation of this, for QCOMPARE.
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