[java] Including IE unit tests to the suite
load("@rules_jvm_external//:defs.bzl", "artifact")
-load("//java:defs.bzl", "java_selenium_test_suite")
+load("//java:defs.bzl", "java_selenium_test_suite", "java_test_suite")
+
+LARGE_TESTS = [
+ "InternetExplorerDriverTest.java",
+]
+
+java_test_suite(
+ name = "small-tests",
+ size = "small",
+ srcs = glob(
+ ["*.java"],
+ exclude = LARGE_TESTS,
+ ),
+ deps = [
+ "//java/client/src/org/openqa/selenium/ie",
+ "//java/client/src/org/openqa/selenium/json",
+ "//java/client/src/org/openqa/selenium/remote",
+ "//java/client/test/org/openqa/selenium/testing:annotations",
+ artifact("junit:junit"),
+ artifact("org.assertj:assertj-core"),
+ artifact("org.mockito:mockito-core"),
+ ],
+)
java_selenium_test_suite(
name = "large-tests",
size = "large",
- srcs = glob(["*.java"]),
+ srcs = LARGE_TESTS,
browsers = [
"ie",
],
@@ -13,14 +35,11 @@ java_selenium_test_suite(
],
deps = [
"//java/client/src/org/openqa/selenium/ie",
- "//java/client/src/org/openqa/selenium/json",
"//java/client/src/org/openqa/selenium/remote",
- "//java/client/src/org/openqa/selenium/support",
"//java/client/test/org/openqa/selenium/testing:annotations",
"//java/client/test/org/openqa/selenium/testing:test-base",
"//java/client/test/org/openqa/selenium/testing/drivers",
artifact("junit:junit"),
artifact("org.assertj:assertj-core"),
- artifact("org.mockito:mockito-core"),
],
)
