Skip to content

Commit 096978d

Browse files
committed
Reorganise the build file
1 parent 7cfae91 commit 096978d

File tree

1 file changed

+43
-51
lines changed

1 file changed

+43
-51
lines changed

javascript/node/selenium-webdriver/BUILD.bazel

Lines changed: 43 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -19,57 +19,6 @@ BROWSER_VERSIONS = [
1919
"v124",
2020
]
2121

22-
XSMALL_TESTS = [
23-
"test/io/io_test.js",
24-
"test/io/zip_test.js",
25-
"test/lib/by_test.js",
26-
"test/lib/credentials_test.js",
27-
"test/lib/error_test.js",
28-
"test/lib/http_test.js",
29-
"test/lib/input_test.js",
30-
"test/lib/logging_test.js",
31-
"test/lib/promise_test.js",
32-
"test/lib/until_test.js",
33-
"test/lib/virtualauthenticatoroptions_test.js",
34-
"test/lib/webdriver_test.js",
35-
"test/net/index_test.js",
36-
"test/net/portprober_test.js",
37-
]
38-
39-
js_library(
40-
name = "small-test-srcs",
41-
srcs = XSMALL_TESTS,
42-
)
43-
44-
js_library(
45-
name = "large-test-srcs",
46-
srcs = glob(
47-
["test/**/*_test.js"],
48-
exclude = XSMALL_TESTS,
49-
),
50-
)
51-
52-
js_library(
53-
name = "test-data",
54-
srcs = glob(
55-
[
56-
"lib/test/**",
57-
"test/**",
58-
],
59-
exclude = [
60-
"test/**/*_test.js",
61-
],
62-
),
63-
)
64-
65-
#TEST_DATA = SRC_FILES + glob(
66-
# [
67-
# "lib/test/**",
68-
# "test/**",
69-
# ],
70-
# exclude = LARGE_TESTS + SMALL_TESTS,
71-
#)
72-
7322
js_library(
7423
name = "prod-src-files",
7524
srcs = [
@@ -120,6 +69,49 @@ pkg_tar(
12069
strip_prefix = "selenium-webdriver",
12170
)
12271

72+
SMALL_TESTS = [
73+
"test/io/io_test.js",
74+
"test/io/zip_test.js",
75+
"test/lib/by_test.js",
76+
"test/lib/credentials_test.js",
77+
"test/lib/error_test.js",
78+
"test/lib/http_test.js",
79+
"test/lib/input_test.js",
80+
"test/lib/logging_test.js",
81+
"test/lib/promise_test.js",
82+
"test/lib/until_test.js",
83+
"test/lib/virtualauthenticatoroptions_test.js",
84+
"test/lib/webdriver_test.js",
85+
"test/net/index_test.js",
86+
"test/net/portprober_test.js",
87+
]
88+
89+
js_library(
90+
name = "small-test-srcs",
91+
srcs = SMALL_TESTS,
92+
)
93+
94+
js_library(
95+
name = "large-test-srcs",
96+
srcs = glob(
97+
["test/**/*_test.js"],
98+
exclude = SMALL_TESTS,
99+
),
100+
)
101+
102+
js_library(
103+
name = "test-data",
104+
srcs = glob(
105+
[
106+
"lib/test/**",
107+
"test/**",
108+
],
109+
exclude = [
110+
"test/**/*_test.js",
111+
],
112+
),
113+
)
114+
123115
mocha_test(
124116
name = "small-tests",
125117
size = "small",

0 commit comments

Comments
 (0)