Add hspec test module

This commit is contained in:
Aaron VonderHaar 2022-05-01 00:13:19 -07:00
parent 000869ab5f
commit 0414031618
3 changed files with 22 additions and 0 deletions

View File

@ -29,3 +29,5 @@ jobs:
- name: Build
run: cabal build -f dev
- name: Tests
run: cabal test -f dev

View File

@ -214,3 +214,22 @@ Executable gren
Main-Is:
Main.hs
Test-Suite gren-tests
Import:
gren-common
Type:
exitcode-stdio-1.0
Hs-Source-Dirs:
tests
Main-Is:
Spec.hs
Build-Depends:
hspec >= 2.7.10 && < 3
Build-Tool-Depends:
hspec-discover:hspec-discover >= 2.7.10 && < 3

1
tests/Spec.hs Normal file
View File

@ -0,0 +1 @@
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}