File tree Expand file tree Collapse file tree
com/thoughtworks/selenium Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ java_library(
66 srcs = [
77 "InternalSelenseTestBase.java" ,
88 ],
9+ testonly = True ,
910 resource_strip_prefix = "java/client/test" ,
1011 resources = [
1112 "testHelpers.js" ,
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ java_selenium_test_suite(
8282# TODO: replace with smaller suites
8383java_library (
8484 name = "tests" ,
85+ testonly = True ,
8586 srcs = glob ([
8687 "*Test.java" ,
8788 "html5/*.java" ,
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ java_selenium_test_suite(
2828
2929java_library (
3030 name = "test-lib" ,
31+ testonly = True ,
3132 srcs = glob (
3233 ["*.java" ],
3334 exclude = [
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ filegroup(
1313
1414java_library (
1515 name = "environment" ,
16+ testonly = True ,
1617 srcs = glob (
1718 [
1819 "*.java" ,
@@ -65,6 +66,7 @@ java_library(
6566java_binary (
6667 name = "appserver" ,
6768 main_class = "org.openqa.selenium.environment.webserver.JettyAppServer" ,
69+ testonly = True ,
6870 visibility = [
6971 "//:__pkg__" ,
7072 "//dotnet/test:__subpackages__" ,
@@ -77,6 +79,7 @@ java_binary(
7779java_binary (
7880 name = "jre-server" ,
7981 main_class = "org.openqa.selenium.environment.webserver.JreAppServer" ,
82+ testonly = True ,
8083 visibility = [
8184 "//dotnet/test:__subpackages__" ,
8285 ],
@@ -88,6 +91,7 @@ java_binary(
8891java_library (
8992 name = "test-base" ,
9093 srcs = ["webserver/AppServerTestBase.java" ],
94+ testonly = True ,
9195 deps = [
9296 ":environment" ,
9397 "//java/client/src/org/openqa/selenium:core" ,
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ java_library(
2626
2727java_library (
2828 name = "test-base" ,
29+ testonly = True ,
2930 srcs = [
3031 "IgnoreComparator.java" ,
3132 "JUnit4TestBase.java" ,
Original file line number Diff line number Diff line change @@ -293,9 +293,10 @@ closure_js_library(
293293
294294closure_js_deps (
295295 name = "deps" ,
296- testonly = 1 ,
296+ testonly = True ,
297297 visibility = [
298298 "//:__pkg__" ,
299+ "//java/client/test/org/openqa/selenium/environment:__pkg__" ,
299300 "//javascript:__pkg__" ,
300301 "//javascript/webdriver:__pkg__" ,
301302 ],
You can’t perform that action at this time.
0 commit comments