An implementation of the test factory pattern made to work with Diesel.
See the documentation for more info.
To install the cargo fmt
pre-commit githook:
git config core.hooksPath ./githooks
To run tests, you will need to create a database:
CREATE DATABASE diesel_factories_test;
And also run migrations:
cargo install diesel_cli --no-default-features --features postgres
diesel migration run --database-url postgresql://localhost:5432/diesel_factories_test
License: MIT