Skip to content

Commit

Permalink
Hook up the tests to the bazel build.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Aug 18, 2018
1 parent d26595e commit 1a9fce4
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@io_tweag_rules_haskell//haskell:haskell.bzl", "haskell_library")
load("@io_tweag_rules_haskell//haskell:haskell.bzl", "haskell_library", "haskell_test")
load("//tools/project:build_defs.bzl", "project")

project(
Expand Down Expand Up @@ -28,3 +28,20 @@ haskell_library(
"@haskell_vector//:vector",
],
)

haskell_test(
name = "test",
srcs = glob(["test/**/*.hs"]),
compiler_flags = [
"-Wall",
"-Werror",
"-Wno-unused-imports",
],
src_strip_prefix = "test",
deps = [
":hs-msgpack-types",
"//third_party/haskell:base",
"@haskell_QuickCheck//:QuickCheck",
"@haskell_hspec//:hspec",
],
)

0 comments on commit 1a9fce4

Please sign in to comment.