Popularity
8.4
Growing
Activity
2.2
Declining
37
7
7

Monthly Downloads: 159
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

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.