Description
A lightweight testing framework for Haskell.
Description
A minimal pure-functional test harness. Build a list of Test values using testPassed and testFailed, then report results with reportTests (pure tests) or reportTestsIO (IO tests). Exits with failure if any test fails. See the README on Github at https://github.com/tpapak/tesths#readme.
README.md
tesths
sample Spec.hs
import qualified TestHS as T
import Test.Something as S
main :: IO ()
main = do
putStrLn "\n"
putStrLn $ "Test Begins"
T.reportTests $ S.fastTests
T.reportTestsIO $ S.ioTests
S.fastTests is a list of tests [Test] and S.ioTests is a list of IO tests [IO Test] defined in Test.Something.