View Source Factoid

Factoid is a library for generating test data using factories build on Ecto.Schemas.

It's similar to ExMachina but it is not a drop-in replacement. Where ExMachina builds and keeps associations in the returned records, Factoid drops the associations and keeps the associated id fields. This helps us build simpler tests.

installation

Installation

If available in Hex, the package can be installed by adding factoid to your list of dependencies in mix.exs:

def deps do
  [
    {:factoid, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/factoid.