Skip to content

Commit

Permalink
[bazel]: making progress on running large tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Stewart committed Nov 22, 2018
1 parent 02c3b92 commit 53be497
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
33 changes: 27 additions & 6 deletions java/client/test/org/openqa/selenium/environment/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
load("//java:bazel-rules.bzl", "gen_java_tests")

TEST_SRCS = glob([
"**/*Test.java",
"**/*TestBase.java",
])

java_library(
name = "environment",
srcs = glob(
[
"*.java",
"webserver/*.java",
],
exclude = [
"**/*Test.java",
"**/*TestBase.java",
],
exclude = TEST_SRCS,
),
data = [
"webserver/keystore",
"//common/src/web",
"//third_party/closure:goog",
],
] + glob(["webserver/*.java"]),
visibility = [
"//java/client/test:__subpackages__",
"//java/server/test:__subpackages__",
Expand All @@ -28,9 +33,25 @@ java_library(
)

java_binary(
name = "webserver",
name = "server",
main_class = "org.openqa.selenium.environment.webserver.JettyAppServer",
runtime_deps = [
":environment",
],
)

gen_java_tests(
size = "large",
srcs = TEST_SRCS,
jvm_flags = [
"-Dselenium.browser=ff",
],
deps = [
":environment",
"//java/client/src/org/openqa/selenium/firefox",
"//java/client/src/org/openqa/selenium/remote",
"//java/client/test/org/openqa/selenium/testing",
"//java/client/test/org/openqa/selenium/testing/drivers",
"//third_party/java/junit",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ java_library(
name = "drivers",
visibility = [
"//java/client/test/org/openqa/selenium/testing:__pkg__",
"//java/client/test/org/openqa/selenium/environment:__pkg__",
],
exports = [
":browser",
Expand Down

0 comments on commit 53be497

Please sign in to comment.