target: Generate test-suites from refinement types.
Target is a library for testing Haskell functions based on properties encoded as refinement types.
The programmer specifies the expected behavior of a function with a refinement type, and Target then checks that the function satisfies the specification by enumerating valid inputs up to some size, calling the function, and validating the output. Target excels when the space of valid inputs is a sparse subset of all possible inputs, e.g. when dealing with dataypes with complex invariants like red-black trees.
Test.Target is the main entry point and should contain everything you need to use Target with types from the Prelude. Test.Target.Targetable will also be useful if you want to test functions that use other types.
For information on how to specify interesting properties with refinement types, we have a series of blog posts as well as an evolving tutorial. Target uses the same specification language as LiquidHaskell, so the examples should carry over.
|Versions [faq]||0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.3.0, 0.2.0.0, 0.2.0.1|
|Dependencies||base (>=4.6 && <5), containers (>=0.5.0.0), directory (>=18.104.22.168), exceptions (>=0.6), filepath (>=22.214.171.124), ghc (>=7.8.3), ghc-paths, liquid-fixpoint (>=0.3.0.1), liquidhaskell (>=0.4.1.1), mtl (>=2.1.2), pretty, process, syb (>=0.4.2), tagged (>=0.7), template-haskell, text (>=1.0), text-format, th-lift, transformers (>=0.3), unordered-containers (>=0.2.3.0), vector [details]|
|Revised||Revision 1 made by EricSeidel at 2015-08-10T19:31:41Z|
|Source repo||head: git clone git://github.com/gridaphobe/target.git|
|Uploaded||by EricSeidel at 2015-05-23T04:57:51Z|
|Downloads||3215 total (2 in the last 30 days)|
|Rating||(no votes yet) [estimated by Bayesian average]|
Docs available [build log]
Last success reported on 2015-05-23 [all 1 reports]
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'.
For package maintainers and hackage trustees