View Source mix factory_ex.gen (factory_ex v0.3.4)
This can be used to generate factories for usage with ecto --repo
is required
Example
$ mix factory_ex.gen --repo MyApp.Repo MyApp.Accounts.User
$ mix factory_ex.gen --repo MyApp.Repo MyApp.Accounts.User MyApp.Accounts.Role
Options
dirname
- Set directory name to generate into../my_app/test/support/factory/
force
- Force create files, no confirmationsquiet
- No output messages