Skip to content

Commit 4509339

Browse files
committed
[java] Including IE unit tests to the suite
1 parent b0b8382 commit 4509339

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
load("@rules_jvm_external//:defs.bzl", "artifact")
2-
load("//java:defs.bzl", "java_selenium_test_suite")
2+
load("//java:defs.bzl", "java_selenium_test_suite", "java_test_suite")
3+
4+
LARGE_TESTS = [
5+
"InternetExplorerDriverTest.java",
6+
]
7+
8+
java_test_suite(
9+
name = "small-tests",
10+
size = "small",
11+
srcs = glob(
12+
["*.java"],
13+
exclude = LARGE_TESTS,
14+
),
15+
deps = [
16+
"//java/client/src/org/openqa/selenium/ie",
17+
"//java/client/src/org/openqa/selenium/json",
18+
"//java/client/src/org/openqa/selenium/remote",
19+
"//java/client/test/org/openqa/selenium/testing:annotations",
20+
artifact("junit:junit"),
21+
artifact("org.assertj:assertj-core"),
22+
artifact("org.mockito:mockito-core"),
23+
],
24+
)
325

426
java_selenium_test_suite(
527
name = "large-tests",
628
size = "large",
7-
srcs = glob(["*.java"]),
29+
srcs = LARGE_TESTS,
830
browsers = [
931
"ie",
1032
],
@@ -13,14 +35,11 @@ java_selenium_test_suite(
1335
],
1436
deps = [
1537
"//java/client/src/org/openqa/selenium/ie",
16-
"//java/client/src/org/openqa/selenium/json",
1738
"//java/client/src/org/openqa/selenium/remote",
18-
"//java/client/src/org/openqa/selenium/support",
1939
"//java/client/test/org/openqa/selenium/testing:annotations",
2040
"//java/client/test/org/openqa/selenium/testing:test-base",
2141
"//java/client/test/org/openqa/selenium/testing/drivers",
2242
artifact("junit:junit"),
2343
artifact("org.assertj:assertj-core"),
24-
artifact("org.mockito:mockito-core"),
2544
],
2645
)

0 commit comments

Comments
 (0)