Skip to content

Commit

Permalink
[bazel]: Build files for tracing and tests of same
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed May 13, 2019
1 parent 81c743c commit 85e0ed1
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
19 changes: 19 additions & 0 deletions java/client/src/org/openqa/selenium/remote/tracing/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
java_library(
name = "tracing",
srcs = glob(["*.java"]),
exports = [
# Exposed by tracing APIs
"//java/client/src/org/openqa/selenium/remote/http",
],
deps = [
"//java/client/src/org/openqa/selenium/remote/http",
"//third_party/java/guava",
"//third_party/java/contrib:opentracing-tracerresolver",
"//third_party/java/opentracing:opentracing-api",
"//third_party/java/opentracing:opentracing-util",
"//third_party/java/opentracing:opentracing-noop",
],
visibility = [
"//java/client/test/org/openqa/selenium/remote/tracing:__subpackages__",
],
)
19 changes: 19 additions & 0 deletions java/client/test/org/openqa/selenium/remote/tracing/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
load("//java:rules.bzl", "java_test_suite")

java_test_suite(
name = "SmallTests",
size = "small",
tags = [
"no-sandbox",
],
srcs = glob(["*.java"]),
deps = [
"//java/client/src/org/openqa/selenium/remote/tracing",
"//java/client/test/org/openqa/selenium/remote/tracing/simple",
"//java/client/test/org/openqa/selenium/environment",
"//third_party/java/assertj",
"//third_party/java/guava",
"//third_party/java/junit",
],
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
java_library(
name = "simple",
srcs = glob(["*.java"]),
deps = [
"//java/client/src/org/openqa/selenium/remote/tracing",
"//third_party/java/guava",
"//third_party/java/opentracing:opentracing-api",
"//third_party/java/opentracing:opentracing-util",
],
visibility = [
"//java/client/test/org/openqa/selenium/remote/tracing:__pkg__",
],
)

0 comments on commit 85e0ed1

Please sign in to comment.