Skip to content

carlosdp/diesel-factories

 
 

Repository files navigation

An implementation of the test factory pattern made to work with Diesel.

See the documentation for more info.

Development

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

Packages

No packages published

Languages

  • Rust 95.7%
  • PLpgSQL 3.0%
  • Other 1.3%