aboutsummaryrefslogtreecommitdiffhomepage
path: root/WORKSPACE
diff options
context:
space:
mode:
authorGravatar Dino Wernli <dinowernli@gmail.com>2016-02-01 15:37:48 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-02 14:56:57 +0000
commitaaff855491f0a6679308c5a6eac43b3a93135bfc (patch)
treeacaab0c2bde6618d50f131907329b4a0fca44026 /WORKSPACE
parentd68626aea63c1b1937128016bc3a210f896e316c (diff)
Add a scala_test rule to Bazel
This implements a scala_test rule analogous to the java_test rule. It uses the standard scalatest library, and adds the corresponding jar(s) to the WORKSPACE file. The rule is tested by adding a proof-of-concept test target to the scala examples. Link to discussion thread: https://groups.google.com/d/msg/bazel-dev/5Kbbwr11XOA/znTY-H1DBgAJ Fixes #503. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/657 MOS_MIGRATED_REVID=113526680
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE8
1 files changed, 8 insertions, 0 deletions
diff --git a/WORKSPACE b/WORKSPACE
index ebe5700f2f..1cb41a8e00 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -52,3 +52,11 @@ new_http_archive(
url = "http://downloads.typesafe.com/scala/2.11.7/scala-2.11.7.tgz",
build_file = "tools/build_defs/scala/scala.BUILD",
)
+
+# only used for the scala test rule
+http_file(
+ name = "scalatest",
+ url = "https://oss.sonatype.org/content/groups/public/org/scalatest/scalatest_2.11/2.2.6/scalatest_2.11-2.2.6.jar",
+ sha256 = "f198967436a5e7a69cfd182902adcfbcb9f2e41b349e1a5c8881a2407f615962",
+)
+