← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~nskaggs/ubuntu-clock-app/run-qml-tests-on-build into lp:ubuntu-clock-app

 

Nicholas Skaggs has proposed merging lp:~nskaggs/ubuntu-clock-app/run-qml-tests-on-build into lp:ubuntu-clock-app.

Commit message:
Always run unit tests on build

Requested reviews:
  Ubuntu Clock Developers (ubuntu-clock-dev)

For more details, see:
https://code.launchpad.net/~nskaggs/ubuntu-clock-app/run-qml-tests-on-build/+merge/289065

Always run unit tests on build
-- 
Your team Ubuntu Clock Developers is requested to review the proposed merge of lp:~nskaggs/ubuntu-clock-app/run-qml-tests-on-build into lp:ubuntu-clock-app.
=== modified file 'tests/unit/CMakeLists.txt'
--- tests/unit/CMakeLists.txt	2015-09-17 15:23:08 +0000
+++ tests/unit/CMakeLists.txt	2016-03-15 15:59:26 +0000
@@ -47,6 +47,12 @@
 )
 add_custom_target(tst_QmlFiles ALL SOURCES ${QML_TST_FILES})
 
+add_custom_command(
+    TARGET tst_QmlFiles
+    POST_BUILD
+    COMMAND ctest --output-on-failure
+)
+
 set(QML_TST_UTILS
     MockClockApp.qml
     ClockTestCase.qml


Follow ups