sinetris / factory_girl_elixir

Minimal implementation of Ruby's factory_girl in Elixir.
MIT License
43 stars 5 forks source link

Does this insert into the database as Factory Girl in ruby does? #2

Open jontonsoup opened 9 years ago

jontonsoup commented 9 years ago

It seems ambiguous if this does or does not insert into the database. I'm leaning no, but I'd love clarity / an update in the docs.

sinetris commented 9 years ago

Hi @jontonsoup, for now it doesn't save to the database and ecto evolved a lot in the last few months. There is a really interesting project on the line of factory_girl_elixir called Blacksmith. I don't really like and trust Faker data, I prefer to know exactly the data that I'm using in my tests (to avoid random failing tests), but you are not obligated to use Faker in Blacksmith. You can find the repo here: https://github.com/batate/blacksmith

jontonsoup commented 9 years ago

Saw this last week! Exactly what I need.

Thanks,

Jon

On Wed, Jul 15, 2015 at 7:41 PM, Duilio Ruggiero notifications@github.com wrote:

Hi @jontonsoup, for now it doesn't save to the database and ecto evolved a lot in the last few months. There is a really interesting project on the line of factory_girl_elixir called Blacksmith. I don't really like and trust Faker data, I prefer to know exactly the data that I'm using in my tests (to avoid random failing tests), but you are not obligated to use Faker in Blacksmith.

You can find the repo here: https://github.com/batate/blacksmith

Reply to this email directly or view it on GitHub: https://github.com/sinetris/factory_girl_elixir/issues/2#issuecomment-121776857

sinetris commented 9 years ago

A bonus to apologize for the delay in replying, two video about testing in Elixir :smile:

Erlang Factory SF Bay 2015 - Bruce Tate - Tests Can Be Beautiful

Erlang Factory SF 2015 - Thomas Arts - Testing for Concurrency Errors in Elixir Code with QuickCheck

jontonsoup commented 9 years ago

Thanks!

On Wed, Jul 15, 2015 at 7:58 PM, Duilio Ruggiero notifications@github.com wrote:

A bonus to apologize for the delay in replying, two video about testing in Elixir :smile: Erlang Factory SF Bay 2015 - Bruce Tate - Tests Can Be Beautiful

Erlang Factory SF 2015 - Thomas Arts - Testing for Concurrency Errors in Elixir Code with QuickCheck

Reply to this email directly or view it on GitHub: https://github.com/sinetris/factory_girl_elixir/issues/2#issuecomment-121779253