Index: denali.pro =================================================================== diff -u -rd3f98384e9400f8acb84c88dee75f1c480986998 -r561055268da68e24fe91a1148b76bf1785dae14d --- denali.pro (.../denali.pro) (revision d3f98384e9400f8acb84c88dee75f1c480986998) +++ denali.pro (.../denali.pro) (revision 561055268da68e24fe91a1148b76bf1785dae14d) @@ -92,22 +92,24 @@ COVERAGE_OPTIONS += --cs-exclude-file-regex=ui_.* COVERAGE_OPTIONS += --cs-exclude-file-regex=moc_.* COVERAGE_OPTIONS += --cs-exclude-file-regex=main.cpp - COVERAGE_OPTIONS += --cs-exclude-file-regex=unittests.* COVERAGE_OPTIONS += --cs-exclude-file-regex=qmlcache* + COVERAGE_OPTIONS += --cs-exclude-file-regex=tst_* QMAKE_CFLAGS += $$COVERAGE_OPTIONS QMAKE_CXXFLAGS += $$COVERAGE_OPTIONS QMAKE_LFLAGS += $$COVERAGE_OPTIONS } -testcase { - message(Building with QtTest) +tst_canbus { + message(Building with QtTest test case canbus) QT += testlib - DEFINES += UNIT_TEST + DEFINES += UNIT_TEST \ + TEST_CLASS_INCLUDE=\\\"unittests/tst_canbus.h\\\" \ + TEST_CLASS_NAME=tst_canbus HEADERS += \ - unittests/unittests.h - SOURCES += \ - unittests/unittests.cpp + unittests/tst_canbus.h + SOURCES += \ + unittests/tst_canbus.cpp } # Additional import path used to resolve QML modules in Qt Creator's code model