-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (67 loc) · 2.24 KB
/
Makefile
File metadata and controls
77 lines (67 loc) · 2.24 KB
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
DEFAULT:
@echo
@echo ' mapping -> build the mapping (implemented only).'
@echo ' full_mapping -> build the mapping (full).'
@echo ' unsupported_mapping -> build the mapping (unsupported).'
@echo ''
@echo 'Notes:'
@echo ' - For midway and e2e test, BROWSER=[chrome|firefox|explorer|multi].'
@echo ' - To test on sauce, set SAUCE_USERNAME/SAUCE_ACCESS_KEY first'
@echo ''
@echo 'Mobile test targets: '
@echo ' test_ios test_iphone test_ipad'
@echo ' test_android test_android_phone test_android_tablet'
# test_sauce:
# BROWSER=multi make test_unit test_midway_sauce_connect
# BROWSER=chrome make test_midway_sauce_connect test_e2e_sauce
# BROWSER=firefox make test_midway_sauce_connect test_e2e_sauce
# test_travis:
# ifeq ($(MULTI),true)
# make jshint
# make test_unit
# ifneq ($(TRAVIS_PULL_REQUEST),false)
# @echo 'Skipping Sauce Labs tests as this is a pull request'
# else
# @echo make test_midway_sauce_connect
# endif
# else
# ifneq ($(TRAVIS_PULL_REQUEST),false)
# @echo 'Skipping Sauce Labs tests as this is a pull request'
# else
# ifeq ($(BROWSER),all_androids)
# BROWSER=android_tablet make test_midway_mobile_sauce_connect
# BROWSER=android_phone make test_midway_mobile_sauce_connect
# else ifeq ($(MOBILE),true)
# make test_midway_mobile_sauce_connect
# else
# make test_midway_sauce_connect
# make test_e2e_sauce
# endif
# endif
# endif
# test_coverage:
# rm -rf coverage
# ./node_modules/.bin/istanbul cover test/coverage/run_tests.js --
_dox:
@mkdir -p tmp
@./node_modules/.bin/dox -r < lib/webdriver.js > tmp/webdriver-dox.json
@./node_modules/.bin/dox -r < lib/element.js > tmp/element-dox.json
@./node_modules/.bin/dox -r < lib/commands.js > tmp/commands-dox.json
@./node_modules/.bin/dox -r < lib/element-commands.js > tmp/element-commands-dox.json
@./node_modules/.bin/dox -r < lib/main.js > tmp/main-dox.json
@./node_modules/.bin/dox -r < lib/asserters.js > tmp/asserters-dox.json
# build the mapping (implemented only)
mapping: _dox
@node doc/mapping-builder.js
# build the mapping (full)
full_mapping: _dox
@node doc/mapping-builder.js full
# build the mapping (unsupported)
unsupported_mapping: _dox
@node doc/mapping-builder.js unsupported
.PHONY: \
DEFAULT \
mapping \
full_mapping \
unsupported_mapping \
_dox