From e891e6228ae433f8a7479b2efa93e362e86dc04f Mon Sep 17 00:00:00 2001 From: Jonathan Lamothe Date: Mon, 18 Oct 2021 02:53:55 -0400 Subject: [PATCH] use hspec --- gemboard.cabal | 1 + package.yaml | 1 + test/Spec.hs | 30 +++++++++++++++++++++++++++++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/gemboard.cabal b/gemboard.cabal index 5987bb7..9fd980e 100644 --- a/gemboard.cabal +++ b/gemboard.cabal @@ -54,4 +54,5 @@ test-suite gemboard-test build-depends: base >=4.7 && <5 , gemboard + , hspec >=2.7.10 && <2.8 default-language: Haskell2010 diff --git a/package.yaml b/package.yaml index f098451..ad39eee 100644 --- a/package.yaml +++ b/package.yaml @@ -48,3 +48,4 @@ tests: - -with-rtsopts=-N dependencies: - gemboard + - hspec >= 2.7.10 && < 2.8 diff --git a/test/Spec.hs b/test/Spec.hs index cd4753f..e6d00b9 100644 --- a/test/Spec.hs +++ b/test/Spec.hs @@ -1,2 +1,30 @@ +{- + +gemboard + +Copyright (C) Jonathan Lamothe + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public +License along with this program. If not, see +. + +-} + +module Main (main) where + +import Test.Hspec (hspec) + main :: IO () -main = putStrLn "Test suite not yet implemented" +main = hspec $ return () + +--jl