-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
52 lines (30 loc) · 1.41 KB
/
README
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
42
43
44
45
46
47
48
49
50
HTML5 Application Template
--------------------------
www/ : the source files of the template application,
tests/ : the application functional and unit tests
package.json : grunt package file used to install dependencies
Gruntfile.js : grunt file for the jasmine unit tests
Unit Tests:
-----------
To run the unit tests, from the project folder:
- Have nodejs and grunt installed on your system,
sudo apt-get install nodejs
- Install the node dependencies:
npm install
- Run the tests:
npm test
Autopilot (functional) tests
----------------------------
- Make sure that you have oxide-chromedriver and selenium installed:
sudo apt-get install oxideqt-chromedriver
sudo apt-add-repository ppa:canonical-platform-qa/selenium
sudo apt-get update
sudo apt-get install python3-selenium
- Run the tests:
cd tests/autopilot
autopilot3 list application_tests
autopilot3 run application_tests
Notes:
----------------------------
- The .desktop file uses the executable 'webapp-container' as an HTML5 application launcher. Previously the executable 'ubuntu-html5-app-launcher' was used for this purpose, it has now been deprecated. For any application targetting the application framework 14.10 and apparmor policy 1.2 though, one can and should still use 'ubuntu-html5-app-launcher'. The Exec line in the .desktop file of the current application then becomes:
Exec=ubuntu-html5-app-launcher $@ --www=www --inspector