faker alternatives and similar packages
Based on the "Testing" category.
Alternatively, view faker alternatives based on common mentions on social networks and blogs.
-
curl-runnings
A declarative test framework for quickly and easily writing integration tests against JSON APIs. -
quickcheck-arbitrary-adt
Typeclass for generating a list of each instance of a sum type's constructors -
test-framework-th
Automagically (using Template Haskell) generates the Haskell-code you need when using HUnit -
tasty-ant-xml
A tasty ingredient to output test results in XML, using the Ant schema. This XML can be consumed by the Jenkins continuous integration framework.
InfluxDB - Purpose built for real-time analytics at any scale.
Do you think we are missing an alternative of faker or a related project?
README
Faker
Faker is pure Haskell library for generating fake data.
βIt comes in very handy for taking screenshots (taking screenshots for my project,
Catch the Best was the original impetus for the creation of this gem),
having real-looking test data, and having your database populated with more
than one or two records while you're doing development.β
@stympy, creator of faker gem for Ruby
Inspired by:
Install
cabal install faker
Usage
:m Faker.Name
runFaker name -- => John Werbowsky
Modules/Functions
- Address
- [x]
buildingNumber
- [x]
city
- [x]
cityPrefix
- [x]
citySuffix
- [x]
country
- [x]
latitude
- [x]
longitude
- [x]
postcode
- [x]
secondaryAddress
- [x]
state
- [x]
stateAbbr
- [x]
streetAddress
- [x]
streetName
- [x]
streetSuffix
- [x]
timeZone
- [x]
- Name
- [x]
firstName
- [x]
lastName
- [x]
name
- [x]
prefix
- [x]
suffix
- [x]
title
- [x]
- Company
- [x]
name
- [x]
buzzwords
- [x]
bs
- [x]
suffix
- [x]
catchPhrase
- [x]
ein
- [x]
dunsNumber
- [x]
logo
- [x]
- App
- [x]
name
- [x]
version
- [x]
author
- [x]
- Business
- [x]
creditCardNumber
- [x]
creditCardExpiryDate
- TODO: should return date - [x]
creditCardType
- [x]
- CreditCard
- [x]
visa
- [x]
mastercard
- [x]
discover
- [x]
discover
- [x]
americanExpress
- [x]
dinersClub
- [x]
jcb
- [x]
switch
- [x]
solo
- [x]
dankort
- [x]
maestro
- [x]
forbrugsforeningen
- [x]
laser
- [x]
- Internet
- [x]
email
- [x]
safeEmail
- [x]
freeEmail
- [x]
generateEmail userName
- [x]
userName
- [x]
domainSuffix
- [x]
freeEmailDomain
- [x]
- Hacker
- [x]
saySomethingSmart
- [x]
abbreviation
- [x]
adjective
- [x]
noun
- [x]
verb
- [x]
ingverb
- [x]
phrases
- [x]
- Lorem
- [ ]
characters range -- (15,255)
- [x]
characters num
- [ ]
paragraph range -- (2,5)
- [x]
paragraph num
- [ ]
paragraphs range -- (2,5)
- [x]
paragraphs num
- [ ]
sentence range -- (4,10)
- [x]
sentence num mark
- [ ]
sentences range -- (2,5)
- [x]
sentences num
- [x]
word
- [ ]
sentences range -- (3,6)
- [x]
sentences num
- [ ]
- Avatar
- [x]
imageUrl
- [ ]
imageUrl slug
- [ ]
imageUrl width height
- [ ]
imageUrl slug width height
- [x]
- Code
- [ ]
isbn
- [ ]
isbn10
- [ ]
isbn13
- [ ]
issn
- [ ]
- ...
Thanks
@igas for idea and explanation
TODO
- Add rest modules and functions
- Improve performance
- Add haddoc documentation
- Use it with quickcheck
- Add translations
Tools
Faker designed as lightweight library, because of it it can be easily used with other tools.
License
MIT License.
*Note that all licence references and agreements mentioned in the faker README section above
are relevant to that project's source code only.