~nik90/ubuntu-clock-app/fix-alarm-sound-race-issue

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Running QML Unit Tests
======================

QML Unit Tests help with testing the internal working of components while
autopilot tests help with testing the UI workflow as experience by the user.
Running QML tests is quite simple and very fast.

If you are submitting your bugfix/patch to the clock app, please follow the
following steps below to check whether that all tests pass before proposing a
merge request.

* Branch the clock app code, 
   $ bzr branch lp:ubuntu-clock-app/reboot
   
* Build the clock app,
   $ mkdir builddir && cd builddir
   $ cmake ..  && make
   
Running all unit test at once
=============================

If you want to run all tests, then run the following command from the builddir,

   $ make test
   
If you want more verbose output, then run,

   $ ctest -V

Running individual test cases,
==============================

If you want to run testcases individually, you can do so by navigating to the
unit tests folder by,

* Navigate to the tests/unit directory
   $ cd reboot/tests/unit
   
* Run the test by providing their filenames
   $ qmltestrunner -input tst_alarmLabel.qml
   $ qmltestrunner -input tst_alarm.qml -import ../../builddir/backend