Skip to content
On this page

What is Factorify ?

Factorify

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.

Factorify is framework-agnostic, that means you can use it with any test runner or framework. It also support multiple databases ( SQLite, Postgres, MySQL, MSSQL ... )

Built-on top of Knex + Faker, and heavily inspired by Adonis.js and Laravel.

Features

  • Support for multiple databases ( SQLite, Postgres, MySQL, MSSQL ... )
  • Integrations with test runners
  • Define variations of your model using states
  • Define relations
  • Generate in-memory instances