Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julien-r44/factorify
🏭 Framework-agnostic model factory system for clean testing
https://github.com/julien-r44/factorify
factory factory-model japa laravel nodejs testing
Last synced: about 2 months ago
JSON representation
🏭 Framework-agnostic model factory system for clean testing
- Host: GitHub
- URL: https://github.com/julien-r44/factorify
- Owner: Julien-R44
- License: mit
- Created: 2022-09-18T11:44:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-28T12:11:39.000Z (11 months ago)
- Last Synced: 2024-10-07T04:42:46.605Z (3 months ago)
- Topics: factory, factory-model, japa, laravel, nodejs, testing
- Language: TypeScript
- Homepage: https://factorify.julr.dev
- Size: 1.19 MB
- Stars: 19
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# @julr/factorify
Framework-agnostic model factory system for clean testing.
Built-on top of [Knex](https://knexjs.org) + [Faker](https://fakerjs.dev/), and **heavily** inspired by [Adonis.js](https://adonisjs.com/) and [Laravel](https://laravel.com/).
> Have you ever written tests, in which the first 15-20 lines of each test are dedicated to just setting up the database state by using multiple models? With Factorify, you can extract all this set up to a dedicated file and then write the bare minimum code to set up the database state.
## Features
- Support for multiple databases ( SQLite, Postgres, MySQL, MSSQL ... )
- Integrations with [test runners](#integrations)
- Define variations of your model using [states](#factory-states)
- Define [relations](#relationships)
- Generate in-memory instances## Getting Started
Please follow the documentation at [factorify.julr.dev](https://factorify.julr.dev/) !