A long-lived project that still receives updates
FakerMaker is a simple factory builder so you can throw away your fixtures and generate test data instead.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 3.2
~> 2.16
~> 0.12
~> 13.0
~> 3.8
~> 1.0
~> 1.0

Runtime

>= 5.2, < 9
 Project Readme

Faker Maker
Faker Maker

Factories over Fixtures

Gem Version Downloads CircleCI branch CodeFactor GitHub tag (latest SemVer)

FakerMaker is a simple factory builder so you can throw away your fixtures and generate test data instead.

Sometimes you need generate data; something testers need to do a lot. Often, a bunch of fixtures will be built by hand, carefully maintained and curated, until the API or schema or something changes and all the fixtures need to be pruned before the tests pass again. This drives testers into building fixtures which individually cover lots of acceptance critera just so that they can drive down the number of them they have to maintain until the fixtures don’t resemble anything like realistic criteria.

If you’re testing a Rails application, you can use the awesome FactoryBot to generate faked model instances but what if you’re not using Rails or you don’t have model classes or you’re testing an API? This is what Faker Maker aims to help with.

It is designed to resemble the Factory Bot gem but without needing an existing class definition to back its object and so it goes without saying that it offers no persistence mechanism. Its purpose is to provide a simple framework for generating data to test JSON APIs and is intended to be used with the Faker gem (but has no dependency upon it).

Read the documentation here.