Skip to content

Commit

Permalink
[java] Adding interactions tests to bazel build
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Nov 29, 2018
1 parent 9ba8800 commit 1538d13
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions java/client/src/org/openqa/selenium/json/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ java_library(
visibility = [
"//java/client/src/org/openqa/selenium/remote:__pkg__",
"//java/client/test/org/openqa/selenium/json:__pkg__",
"//java/client/test/org/openqa/selenium/interactions:__pkg__",
],
deps = [
"//java/client/src/org/openqa/selenium",
Expand Down
41 changes: 41 additions & 0 deletions java/client/test/org/openqa/selenium/interactions/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
load("//java:bazel-rules.bzl", "gen_java_selenium_tests", "gen_java_tests")

SMALL_TESTS = [
"ActionsTest.java",
"CompositeActionTest.java",
"IndividualKeyboardActionsTest.java",
"IndividualMouseActionsTest.java",
"PointerInputTest.java",
]

gen_java_tests(
size = "small",
srcs = SMALL_TESTS,
deps = [
"//java/client/src/org/openqa/selenium",
"//java/client/src/org/openqa/selenium/json",
"//java/client/src/org/openqa/selenium/remote",
"//java/client/test/org/openqa/selenium",
"//third_party/java/assertj",
"//third_party/java/guava",
"//third_party/java/junit",
"//third_party/java/mockito:mockito-core",
],
)

gen_java_selenium_tests(
srcs = glob([
"*Test.java",
], exclude = SMALL_TESTS),
deps = [
"//java/client/src/org/openqa/selenium",
"//java/client/src/org/openqa/selenium/support",
"//java/client/test/org/openqa/selenium",
"//java/client/test/org/openqa/selenium/testing",
"//java/client/test/org/openqa/selenium/testing/drivers",
"//third_party/java/assertj",
"//third_party/java/guava",
"//third_party/java/junit",
"//third_party/java/mockito:mockito-core",
],
)

0 comments on commit 1538d13

Please sign in to comment.