Debian Codegraph @

README

raw
1 These are the QML bindings and an example app for the push notifications API.
2
3
4 = Building =
5
6 The build system is cmake:
7
8 $ mkdir -p _build
9 $ cd _build
10 $ cmake ..
11 $ make
12
13
14 = Running =
15
16 The example app can be run from the development branch without installing:
17
18 $ env APP_ID=com.lomiri.developer.ralsina.hello_hello qmlscene src/example/lomiri-push-example.qml
19
20
21 = Unit tests =
22
23 To run the unit tests, you can use the commands below:
24
25 $ make test
26
27 - or -
28
29 $ ctest
30
31
32 = Automated UI tests =
33
34 lomiri-push-qml uses autopilot (https://launchpad.net/autopilot) to test its UI.
35 To run the tests, you will need to install python-autopilot and libautopilot-qt.
36 Then do the following:
37
38 $ cd tests/autopilot/
39 $ autopilot run lomiri_push_qml
40
41 You can get a list of all available tests with the following command:
42
43 $ autopilot list lomiri_push_qml
44
45
46 = Code coverage =
47
48 To generate a report with detailed code coverage, you need to re-run cmake with
49 "CMAKE_BUILD_TYPE=coverage":
50
51 $ cmake -DCMAKE_BUILD_TYPE=coverage .
52 $ make
53 $ make test
54 $ make coverage
55
56 This will generate a coverage report in XML format (coverage.xml) and an
57 interactive human-readable report in HTML format (coveragereport/index.html).
58