The chell package

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]

Chell is a simple and intuitive library for automated testing. It natively supports assertion-based testing, and can use companion libraries such as chell-quickcheck to support more complex testing strategies.

An example test suite, which verifies the behavior of artithmetic operators.

{-# LANGUAGE TemplateHaskell #-}

import Test.Chell

tests_Math :: Suite
tests_Math = suite "math"
    [ test_Addition
    , test_Subtraction
    ]

test_Addition :: Test
test_Addition = assertions "addition" $ do
    $expect (equal (2 + 1) 3)
    $expect (equal (1 + 2) 3)

test_Subtraction :: Test
test_Subtraction = assertions "subtraction" $ do
    $expect (equal (2 - 1) 1)
    $expect (equal (1 - 2) (-1))

main :: IO ()
main = defaultMain [tests_Math]
$ ghc --make chell-example.hs
$ ./chell-example
PASS: 2 tests run, 2 tests passed

Properties

Versions0.1, 0.1.1, 0.1.2, 0.1.3, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.3, 0.3.1, 0.3.2, 0.3.3, 0.4, 0.4.0.1, 0.4.0.2, 0.4.0.2
Change logNone available
Dependenciesansi-terminal (>=0.5 && <0.8), base (>=4.1 && <5.0), bytestring (>=0.9), options (>=1.0 && <2.0), patience (==0.1.*), random (>=1.0), template-haskell (>=2.3), text, transformers (>=0.2) [details]
LicenseMIT
AuthorJohn Millikin <john@john-millikin.com>
MaintainerJohn Millikin <john@john-millikin.com>
CategoryTesting
Home pagehttps://john-millikin.com/software/chell/
Bug trackermailto:jmillikin@gmail.com
Source repositoryhead: git clone https://john-millikin.com/code/chell/
this: git clone https://john-millikin.com/code/chell/(tag chell_0.4.0.2)
UploadedTue Dec 12 06:19:52 UTC 2017 by JohnMillikin

Modules

[Index]

Flags

NameDescriptionDefaultType
color-output

Enable colored output in test results

EnabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees