Sha256: 2d207fa3f7b766e166c2aa111ecce7fcd0b6cc6e323ab52c71342025b38e61d6

Contents?: true

Size: 1.38 KB

Versions: 10

Compression:

Stored size: 1.38 KB

Contents

---
layout: default
title: Home
nav_order: 1
permalink: /
---

# Factories over fixtures
{: .fs-9 }


FakerMaker is a simple factory builder so you can throw away your fixtures and generate test data instead.
{: .fs-6 .fw-300 }

---

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](https://github.com/thoughtbot/factory_bot) 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](https://github.com/stympy/faker) gem (but has no dependency upon it).

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
faker_maker-2.1.2 docs/index.md
faker_maker-2.1.1 docs/index.md
faker_maker-2.0.0 docs/index.md
faker_maker-1.3.0 docs/index.md
faker_maker-1.2.1 docs/index.md
faker_maker-1.2.0 docs/index.md
faker_maker-1.1.10 docs/index.md
faker_maker-1.1.9 docs/index.md
faker_maker-1.1.8 docs/index.md
faker_maker-1.1.7 docs/index.md