Skip to content

Commit

Permalink
Expose J2CL's AsyncTestRunner for external use.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 254296933
  • Loading branch information
gkdn authored and Copybara-Service committed Jun 20, 2019
1 parent 2e67b3c commit 3433abf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
12 changes: 12 additions & 0 deletions BUILD
Expand Up @@ -35,6 +35,18 @@ alias(
actual = "//junit/emul/java:junit_emul", actual = "//junit/emul/java:junit_emul",
) )


# JUnit async runner (EXPERIMENTAL)

alias(
name = "junit_async_runner",
actual = "//junit/generator/java/com/google/j2cl/junit/async",
)

alias(
name = "junit_async_runner-j2cl",
actual = "//junit/generator/java/com/google/j2cl/junit/async:async-j2cl",
)

# Optional minifier library for development servers # Optional minifier library for development servers
alias( alias(
name = "minifier", name = "minifier",
Expand Down
5 changes: 4 additions & 1 deletion junit/generator/java/com/google/j2cl/junit/async/BUILD
Expand Up @@ -3,7 +3,10 @@
# JVM async testing support should be placed under Guava or Xplat. # JVM async testing support should be placed under Guava or Xplat.


package( package(
default_visibility = ["//junit/generator/javatests/com/google/j2cl/junit:__subpackages__"], default_visibility = [
"//:__pkg__",
"//junit/generator/javatests/com/google/j2cl/junit:__subpackages__",
],
licenses = ["notice"], # Apache 2.0 licenses = ["notice"], # Apache 2.0
) )


Expand Down
15 changes: 11 additions & 4 deletions third_party/BUILD
@@ -1,9 +1,12 @@
# Description: # Description:
# Thirdparty dependencies indirection for bazel. # Thirdparty dependencies indirection for bazel.


package(default_visibility = ["//:__subpackages__"]) package(
default_visibility = ["//:__subpackages__"],
licenses = ["notice"], # Apache 2.0
)


licenses(["notice"]) # Apache 2.0 load("//build_defs:rules.bzl", "j2cl_import", "j2cl_library")


alias( alias(
name = "guava", name = "guava",
Expand Down Expand Up @@ -89,6 +92,12 @@ java_library(
exports = ["@org_junit//jar"], exports = ["@org_junit//jar"],
) )


j2cl_library(
name = "junit-j2cl",
testonly = 1,
exports = ["//:junit"],
)

java_library( java_library(
name = "mockito", name = "mockito",
testonly = 1, testonly = 1,
Expand Down Expand Up @@ -142,8 +151,6 @@ alias(
actual = "@org_gwtproject_gwt//user:gwt-javaemul-internal-annotations", actual = "@org_gwtproject_gwt//user:gwt-javaemul-internal-annotations",
) )


load("//build_defs:rules.bzl", "j2cl_import")

j2cl_import( j2cl_import(
name = "gwt-javaemul-internal-annotations-j2cl", name = "gwt-javaemul-internal-annotations-j2cl",
jar = "@org_gwtproject_gwt//user:gwt-javaemul-internal-annotations", jar = "@org_gwtproject_gwt//user:gwt-javaemul-internal-annotations",
Expand Down

0 comments on commit 3433abf

Please sign in to comment.