From 914690435f7dd35de4974f79c576a4ad276b5a6b Mon Sep 17 00:00:00 2001 From: Patrick Thomson Date: Thu, 21 May 2020 15:24:16 -0400 Subject: [PATCH] Get semantic-source tests working. --- WORKSPACE | 1 + semantic-source/BUILD.bazel | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index b49310e2c..54c635fc7 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -52,6 +52,7 @@ stack_snapshot( "containers", "deepseq", "directory", + "doctest", "filepath", "fused-effects", "fused-effects-readline", diff --git a/semantic-source/BUILD.bazel b/semantic-source/BUILD.bazel index a8f6bee3d..da491f66b 100644 --- a/semantic-source/BUILD.bazel +++ b/semantic-source/BUILD.bazel @@ -6,7 +6,7 @@ load( "@rules_haskell//haskell:defs.bzl", "haskell_toolchain_library", "haskell_library", - "haskell_binary", + "haskell_test", ) load("@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary", "haskell_cabal_library") @@ -16,7 +16,6 @@ load("@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary", "haskell_cabal # can be referenced as dependencies. haskell_toolchain_library(name = "base") -# You can add your own libraries with haskell_library. haskell_library( name = "lib", src_strip_prefix = "src", @@ -36,3 +35,18 @@ haskell_library( "@stackage//:pathtype", ], ) + +haskell_test( + name = "test", + src_strip_prefix = "test", + srcs = ['test/Test.hs', 'test/Source/Test.hs'], + deps = [ + ":base", + ":lib", + "@stackage//:hedgehog", + "@stackage//:tasty", + "@stackage//:tasty-hedgehog", + "@stackage//:tasty-hunit", + "@stackage//:text", + ], +)