chell: A simple and intuitive library for automated testing.
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
Flags
Automatic Flags
| Name | Description | Default |
|---|---|---|
| color-output | Enable colored output in test results | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- chell-0.3.3.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.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.5, 0.5.0.1, 0.5.0.2 |
|---|---|
| Dependencies | ansi-terminal (>=0.5 && <0.7), base (>=4.1 && <4.8), bytestring (>=0.9), options (>=1.0 && <2.0), patience (>=0.1 && <0.2), random (>=1.0), template-haskell (>=2.3), text, transformers (>=0.2) [details] |
| License | MIT |
| Author | John Millikin <jmillikin@gmail.com> |
| Maintainer | John Millikin <jmillikin@gmail.com> |
| Uploaded | by JohnMillikin at 2014-03-02T04:18:18Z |
| Revised | Revision 1 made by HerbertValerioRiedel at 2014-12-29T11:41:03Z |
| Category | Testing |
| Home page | https://john-millikin.com/software/chell/ |
| Bug tracker | mailto:jmillikin@gmail.com |
| Source repo | head: git clone https://john-millikin.com/code/chell/ this: git clone https://john-millikin.com/code/chell/(tag chell_0.3.3) |
| Distributions | Arch:0.5.0.2, Debian:0.5, LTSHaskell:0.5.0.2, NixOS:0.5.0.2, Stackage:0.5.0.2 |
| Reverse Dependencies | 3 direct, 0 indirect [details] |
| Downloads | 22028 total (73 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Successful builds reported [all 1 reports] |