forked from readium/readium-js-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage_scripts_test_base.cson
97 lines (78 loc) · 2.03 KB
/
package_scripts_test_base.cson
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# See package.cson for more information
#
#=====================
'mocha': '
node node_modules/mocha/bin/mocha
--timeout 180000
--ui bdd
tests/tests.js
'
#=====================
'clean:tests': '
npm run rimraf
dist/Readium.crx
&&
npm run rimraf
dist/cloud-reader/epub_content/
&&
npm run rimraf
dist/testbooks.zip
&&
npm run rimraf
dist/testlibrary/
'
#=====================
'test': '
npm run test:chromeApp
&&
npm run test:firefox
&&
npm run test:chrome
'
#=====================
'pretest:chromeApp': '
npm run crx
'
# REQUIRES ChromeDriver in the PATH
# https://sites.google.com/a/chromium.org/chromedriver/home
#=====================
'test:chromeApp': '
concurrently --raw --kill-others
\"node build-config/selenium_webdriver.js
-a 127.0.0.1
-p 8080
-c-1
./dist/chrome-app\"
\"npm run mocha --readium-js-viewer:MODE=chromeApp\"
'
#=====================
'pretest:chrome': '
npm run deploy:cloudReader:copy:epub_content
'
# REQUIRES ChromeDriver in the PATH
# https://sites.google.com/a/chromium.org/chromedriver/home
#=====================
'test:chrome': '
concurrently --raw --kill-others
\"node build-config/selenium_webdriver.js
-a 127.0.0.1
-p 8080
-c-1
./dist/cloud-reader\"
\"npm run mocha --readium-js-viewer:MODE=chrome\"
'
#==============
'pretest:firefox': '
npm run deploy:cloudReader:copy:epub_content
'
#=====================
'test:firefox': '
concurrently --raw --kill-others
\"node build-config/selenium_webdriver.js
-a 127.0.0.1
-p 8080
-c-1
./dist/cloud-reader\"
\"npm run mocha --readium-js-viewer:MODE=firefox\"
'