It's been a while since I use QtTest, and never on MacOS.

I am following the tutorial at: and

Changes from existing project:
QT += testlib
CONFIG += testcase no_testcase_installs
HEADERS += test_sqldatabase.h

Added a test_sqldatabase.h, containing:
class Test_SqlDatabase: public QObject {
private slots:

#include "moc_test_sqldatabase.h" // the tutorial says #include 
"testqstring.moc" But it looks like the moc naming convention change

// end of test_sqldatabase.h

When I run `qmake && make check` it just executes the main program

What did I miss?
the make target is:
check: first
        .../ $(TESTRUNNER) 

Which makes me think TESTRUNNER is not being set?

Interest mailing list

Reply via email to