-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.desc
71 lines (62 loc) · 1.91 KB
/
build.desc
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
# py_test targets implicitly get the following extra targets added:
# for each browser in browsers:
# :name_B to gather the sources of the tests for browser B
# :name_B:run to run the tests for browser B
# Also, if only one browser, B, is listed in browsers:
# :name:run is created as a synonym for :name_B:run
#
# Currently, pulling in other tests through deps is limited to deps declared in the same build.desc file
py_test(
name = "firefox_test",
ff_specific_tests = [ "test/selenium/webdriver/firefox/*_tests.py" ],
deps = [ ":test_ff" ],
resources = [
{ "//javascript/firefox-driver:webdriver" : "selenium/webdriver/firefox/" }
],
browsers = [ "ff" ])
py_test(
name = "ghostdriver_test",
gd_specific_tests = [ "test/selenium/webdriver/ghostdriver/*_tests.py" ],
deps = [ ":test_gd" ],
browsers = [ "gd" ])
py_test(
name = "chrome_test",
chrome_specific_tests = [ "test/selenium/webdriver/chrome/*_tests.py" ],
deps = [ ":test_chrome" ],
browsers = [ "chrome" ])
py_test(
name = "opera_test",
opera_specific_tests = [ "test/selenium/webdriver/opera/*_tests.py" ],
deps = [ ":test_opera" ],
browsers = [ "opera" ])
py_test(
name = "ie_test",
deps = [ ":test_ie" ],
browsers = [ "ie" ])
py_test(
name = "remote_firefox_test",
remote_firefox_specific_tests = [ "test/selenium/webdriver/remote/*_tests.py" ],
deps = [ ":test_remote_firefox" ],
browsers = [ "remote_firefox" ])
py_env(
name = "test_env",
packages = [
"third_party/py/simplejson-2.2.1.tar.gz",
"third_party/py/py-1.4.5.zip",
"third_party/py/pytest-2.0.3.zip",
],
dest = "build/python")
py_test(
name = "test",
common_tests = [
"test/selenium/webdriver/common/*_tests.py",
"test/selenium/webdriver/support/*_tests.py"
],
browsers = [
"chrome",
"ff",
"ie",
"gd",
"remote_firefox",
"opera"
])