tesths: A lightweight testing framework for Haskell

[ lgpl, library, testing ] [ Propose Tags ] [ Report a vulnerability ]

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.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.2.2.1
Change log ChangeLog.md
Dependencies ansi-terminal (>=0.6 && <1.2), base (>=4.7 && <4.21) [details]
License LGPL-3.0-only
Copyright 2026 Thodoris Papakonstantinou
Author Thodoris Papakonstantinou
Maintainer dev@tpapak.com
Uploaded by tpapak at 2026-03-09T18:37:53Z
Category Testing
Home page https://github.com/tpapak/tesths#readme
Bug tracker https://github.com/tpapak/tesths/issues
Source repo head: git clone https://github.com/tpapak/tesths
Distributions
Downloads 0 total (0 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-03-09 [all 1 reports]

Readme for tesths-0.2.2.1

[back to package description]

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