Merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/readMeTests into lp:ubuntu-ui-toolkit/staging

Proposed by Cris Dywan
Status: Merged
Approved by: Florian Boucault
Approved revision: 2030
Merged at revision: 2031
Proposed branch: lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/readMeTests
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 54 lines (+35/-4)
2 files modified
README (+35/-0)
tests/unit/README (+0/-4)
To merge this branch: bzr merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/readMeTests
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve
Florian Boucault (community) Needs Fixing
Review via email: mp+299554@code.launchpad.net

Commit message

Add a snippet about tests to the toplevel README

To post a comment you must log in.
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Florian Boucault (fboucault) wrote :

please provide a simple one liner to run each type of test; including how to run a single test case

review: Needs Fixing
Revision history for this message
Florian Boucault (fboucault) wrote :

I expected something simpler such as: http://pastebin.ubuntu.com/19062362/

2029. By Cris Dywan

Add more explicit test command suggestions to README

2030. By Cris Dywan

Use and explain correct way to run individual tests

Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README'
2--- README 2016-03-16 14:53:19 +0000
3+++ README 2016-07-11 10:17:24 +0000
4@@ -44,6 +44,41 @@
5 shell.
6
7
8+Tests
9+-----
10+
11+tests
12+ - autopilot/ubuntuuitoolkit: Autopilot test cases and CPOs
13+ ./run_tests.sh list
14+ ./run_tests.sh run [TESTCASE]
15+ - api: Tests for apicheck (API description generator)
16+ Run 'make check' in the folder
17+ - license: Script to verify that sources contains copright headers
18+ make license
19+ - resources: Manual test cases (deprecated, should move to unit/visual)
20+ - unit:
21+ Unit tests using QTest/UbuntuTestCase
22+ Run 'make check[_BASENAME_WITH_UNDERSCORES]' in the respective subfolder
23+ eg. 'tst_label_extras.13.qml' becomes 'make check_tst_label_extras_13'
24+ This is driven by runtest.sh and checkresults.sh.
25+ - visual: All tests in this folder can be run as unit tests as well as
26+ interactively. That means 'make check' or via gallery.sh.
27+ Optional: prefix with './tests/xvfb.sh' to run inside XVfb.
28+ Note for adding new files: The root must be a visual Item-based type
29+ with a width and height. TestCase or UbuntuTestCase must be a child.
30+
31+ Verify the whole Toolkit API:
32+ './tests/qmlapicheck.sh' inspects components.api and produces components.api.new
33+
34+ Verify the tidyness of packaging:
35+ ./packaging-sorting.sh
36+
37+ Verify the coding style of Python source code:
38+ pyflakes .
39+
40+ 'source export_qml_dir.sh' can be used in bash to setup the environment.
41+
42+
43 Documentation
44 -------------
45
46
47=== removed file 'tests/unit/README'
48--- tests/unit/README 2013-06-26 22:44:07 +0000
49+++ tests/unit/README 1970-01-01 00:00:00 +0000
50@@ -1,4 +0,0 @@
51-== How to execute a single qml test ==
52-
53-When current path is tests/unit/tst_components:
54-QML2_IMPORT_PATH=../../../modules:$QML2_IMPORT_PATH UBUNTU_UI_TOOLKIT_THEMES_PATH=../../../modules qmltestrunner -input tst_yourtest.qml -import "../../../modules"

Subscribers

People subscribed via source and target branches