aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-01-13 09:39:16 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-01-13 13:19:15 +0000
commit0e396b827bca5ee507aadc875169e47d959a7136 (patch)
treee79d73a63c2148ca122af209f224ef1152e3ced8 /examples
parent45fdee15c5d276462f4cb86d402551f02ac8bb0b (diff)
Use our java test runner in Bazel
RELNOTES[NEW]: A new java test runner that support XML output and test filtering is supported. It can be used by specifying --nolegacy_bazel_java_test or by speicifying the test_class attribute on a java_test. -- MOS_MIGRATED_REVID=112028955
Diffstat (limited to 'examples')
-rw-r--r--examples/java-native/src/test/java/com/example/myproject/BUILD10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/java-native/src/test/java/com/example/myproject/BUILD b/examples/java-native/src/test/java/com/example/myproject/BUILD
index 9a91a8288b..b9d81a1ff8 100644
--- a/examples/java-native/src/test/java/com/example/myproject/BUILD
+++ b/examples/java-native/src/test/java/com/example/myproject/BUILD
@@ -17,6 +17,16 @@ java_test(
)
java_test(
+ name = "custom_with_test_class",
+ srcs = glob(["Test*.java"]),
+ test_class = "com.example.myproject.TestCustomGreeting",
+ deps = [
+ "//examples/java-native/src/main/java/com/example/myproject:custom-greeting",
+ "//third_party:junit4",
+ ],
+)
+
+java_test(
name = "fail",
srcs = ["Fail.java"],
deps = ["//third_party:junit4"],