From 95e875d799c3ae775bd631045ad5946228bb7c79 Mon Sep 17 00:00:00 2001 From: Jonathan Lamothe Date: Tue, 19 Oct 2021 11:08:12 -0400 Subject: [PATCH] use hspec --- gemserv.cabal | 1 + package.yaml | 1 + test/Spec.hs | 30 +++++++++++++++++++++++++++++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/gemserv.cabal b/gemserv.cabal index 6d29b91..5833de0 100644 --- a/gemserv.cabal +++ b/gemserv.cabal @@ -42,4 +42,5 @@ test-suite gemserv-test build-depends: base >=4.7 && <5 , gemserv + , hspec >=2.7.10 && <2.8 default-language: Haskell2010 diff --git a/package.yaml b/package.yaml index 2743141..8399cba 100644 --- a/package.yaml +++ b/package.yaml @@ -37,3 +37,4 @@ tests: - -with-rtsopts=-N dependencies: - gemserv + - hspec >= 2.7.10 && < 2.8 diff --git a/test/Spec.hs b/test/Spec.hs index cd4753f..507276c 100644 --- a/test/Spec.hs +++ b/test/Spec.hs @@ -1,2 +1,30 @@ +{- + +gemserv + +Cooyright (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