diff --git a/hie.yaml b/hie.yaml index 559d5b40f..395618f18 100644 --- a/hie.yaml +++ b/hie.yaml @@ -11,3 +11,6 @@ cradle: - path: "./src/app/Paths_MiniJuvix.hs" component: "MiniJuvix:exe:MiniJuvix" + + - path: "./test" + component: "MiniJuvix:test:MiniJuvix-test" diff --git a/package.yaml b/package.yaml index 69c4f2f37..e1f591a73 100644 --- a/package.yaml +++ b/package.yaml @@ -73,3 +73,12 @@ executables: source-dirs: src/app dependencies: - MiniJuvix + +tests: + MiniJuvix-test: + main: Spec.hs + source-dirs: test + dependencies: + - MiniJuvix + - tasty + - tasty-hunit diff --git a/test/test/parsing/Test.hs b/test/Parsing/Test.hs similarity index 77% rename from test/test/parsing/Test.hs rename to test/Parsing/Test.hs index 15a561f24..aaa0a65d5 100644 --- a/test/test/parsing/Test.hs +++ b/test/Parsing/Test.hs @@ -1,4 +1,4 @@ -module Test where +module Parsing.Test where import MiniJuvix.Parsing.ParserQQ @@ -7,4 +7,4 @@ m = [mjuvixMod| module M; end; - |] \ No newline at end of file + |] diff --git a/test/test/Spec.hs b/test/Spec.hs similarity index 65% rename from test/test/Spec.hs rename to test/Spec.hs index 19e712166..b3d4ce087 100644 --- a/test/test/Spec.hs +++ b/test/Spec.hs @@ -1,4 +1,7 @@ module Main (main) where +import MiniJuvix.Utils.Prelude +import Parsing.Test + main :: IO () main = putStrLn ("Test suite is not implemented" :: String)