We are going to be building a Phoenix project that will be consumed by a React Native app.
The RN devs want to be able to run end-to-end automated tests to go through certain scenarios in an iOS simulator.
I was thinking that I could provide something like
mix test.setup which would clean out and populate the database with all the data required for this type of testing.
Elixir won’t be driving out the tests, so simply running the seed command from inside
test_helper.exs isn’t going cut it (as suggested here)
I imagine the final solution will be ran from a CI server and the script will look something like;
set_up_deps sort_out_database run_crazy_reactnative_test_runner clean_database
In your opinion, would it be better to create my own task for this, or should I use Phoenix’s built in seed functionality?