Popularity
8.4
Stable
Activity
0.0
Stable
46
8
9

Monthly Downloads: 22
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Data    
Latest version: v0.1.1

fake alternatives and similar packages

Based on the "Data" category.
Alternatively, view fake alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of fake or a related project?

Add another 'Data' Package

README

Fake

Build Status

Fake is a Haskell package for generating realistic-looking fake data.

Overview

The package has three main components:

  1. Analogs to QuickCheck's Arbitrary and Gen that use realistic probability distributions rather than the more uniform distributions used by QuickCheck.
  2. A [generic coverage function](src/Fake/Cover.hs#L114) that generates [full constructor coverage](test/Main.hs#L32) over a data type.
  3. A [suite of providers](src/Fake/Provider) for common types of data such as names, addresses, phone numbers, ID numbers, etc.

Fake's gcover function is particularly useful with the armor package for ensuring that all constructors of your data types are tested for backwards compatible serializations without having to write all the values yourself. This allows you to get higher confidence that you have covered most of the important cases without the combinatorial explosion of exhaustive testing.

Credits

Original inspiration came from the production needs of Formation (previously Takt).

Providers and other details were inspired by similar packages in Python and Ruby.