[Interest] make check not working (macOS)
Jason H
jhihn at gmx.com
Wed Jun 23 17:26:54 CEST 2021
Ok, I was missing Q_OBJECT
But then `make`:
*** No rule to make target `test_sqldatabase.moc.json', needed by `ndx-poc-ui_metatypes.json'. Stop.
I don't know where these .json files fit in the Qt build process. I've never had to worry about them before.
> Sent: Wednesday, June 23, 2021 at 11:08 AM
> From: "Jason H" <jhihn at gmx.com>
> To: "interestqt-project.org" <interest at qt-project.org>
> Subject: [Interest] make check not working (macOS)
>
> It's been a while since I use QtTest, and never on MacOS.
>
> I am following the tutorial at: https://doc.qt.io/qt-5/qtest-overview.html and https://doc.qt.io/qt-5/qttestlib-tutorial1-example.html
>
> 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:
> ...tests...
> };
>
> QTEST_MAIN(Test_SqlDatabase)
> #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
> .../target_wrapper.sh $(TESTRUNNER) ./$(QMAKE_TARGET).app/Contents/MacOS/$(QMAKE_TARGET) $(TESTARGS)
>
> Which makes me think TESTRUNNER is not being set?
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
More information about the Interest
mailing list