aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarius Gripsgard <marius@ubports.com>2020-08-15 01:04:38 +0200
committerMarius Gripsgard <marius@ubports.com>2020-08-15 01:04:38 +0200
commita17ce349a9185f22f73e20384547f6aae042bd78 (patch)
tree745f16d7319ef7cf9f3e9b6dce947758cf251e8a /tests
parent3c9b1cef8c20c10b0aded37af6e231e78f3ddaae (diff)
downloadqmenumodel-a17ce349a9185f22f73e20384547f6aae042bd78.tar.gz
qmenumodel-a17ce349a9185f22f73e20384547f6aae042bd78.tar.bz2
qmenumodel-a17ce349a9185f22f73e20384547f6aae042bd78.zip
Use CoverageReport from cmake-extras
This gives us a much better coverage reports
Diffstat (limited to 'tests')
-rw-r--r--tests/client/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/client/CMakeLists.txt b/tests/client/CMakeLists.txt
index ed2f1aa..ce8192d 100644
--- a/tests/client/CMakeLists.txt
+++ b/tests/client/CMakeLists.txt
@@ -23,6 +23,7 @@ macro(declare_test testname)
TIMEOUT ${CTEST_TESTING_TIMEOUT}
ENVIRONMENT "PYTHONPATH=${TEST_PYTHONPATH};QT_QPA_PLATFORM=minimal")
+ set(TESTS ${TESTS} ${testname})
endmacro(declare_test testname)
macro(declare_simple_test testname)
@@ -64,3 +65,14 @@ declare_test(unitymenuactiontest)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qmlfiles.h.in
${CMAKE_CURRENT_BINARY_DIR}/qmlfiles.h)
+
+find_package(CoverageReport)
+enable_coverage_report(
+ TARGETS
+ qmenumodel
+ FILTER
+ ${CMAKE_SOURCE_DIR}/tests/*
+ ${CMAKE_BINARY_DIR}/*
+ TESTS
+ ${TESTS}
+)