~ubuntu-clock-dev/ubuntu-clock-app/fix-clock-bug-1551307

« back to all changes in this revision

Viewing changes to README.unittest

  • Committer: Nekhelesh Ramananthan
  • Date: 2015-08-12 19:04:13 UTC
  • mto: This revision was merged to the branch mainline in revision 328.
  • Revision ID: krnekhelesh@gmail.com-20150812190413-c39enakzjhow723a
Updated readme styles and information

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Running QML Unit Tests
2
 
 
3
 
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.
4
 
 
5
 
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.
 
1
Running QML Unit Tests
 
2
======================
 
3
 
 
4
QML Unit Tests help with testing the internal working of components while
 
5
autopilot tests help with testing the UI workflow as experience by the user.
 
6
Running QML tests is quite simple and very fast.
 
7
 
 
8
If you are submitting your bugfix/patch to the clock app, please follow the
 
9
following steps below to check whether that all tests pass before proposing a
 
10
merge request.
6
11
 
7
12
* Branch the clock app code, 
8
13
   $ bzr branch lp:ubuntu-clock-app/reboot
11
16
   $ mkdir builddir && cd builddir
12
17
   $ cmake ..  && make
13
18
   
14
 
## Running all unit test at once
 
19
Running all unit test at once
 
20
=============================
15
21
 
16
22
If you want to run all tests, then run the following command from the builddir,
17
23
 
18
 
*  $ make test
 
24
   $ make test
19
25
   
20
26
If you want more verbose output, then run,
21
27
 
22
 
*  $ ctest -V
23
 
 
24
 
## Running individual test cases,
25
 
 
26
 
If you want to run testcases individually, you can do so by navigating to the unit tests folder by,
 
28
   $ ctest -V
 
29
 
 
30
Running individual test cases,
 
31
==============================
 
32
 
 
33
If you want to run testcases individually, you can do so by navigating to the
 
34
unit tests folder by,
27
35
 
28
36
* Navigate to the tests/unit directory
29
37
   $ cd reboot/tests/unit
30
38
   
31
39
* Run the test by providing their filenames
32
40
   $ qmltestrunner -input tst_alarmLabel.qml
 
41
   $ qmltestrunner -input tst_alarm.qml -import ../../builddir/backend