tesths: A lightweight testing framework for Haskell

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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]

Properties

Versions 0.2.2.1, 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
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
Uploaded by tpapak at 2026-03-09T16:56:16Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


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