Open bmulholland opened 3 years ago
It wasn't obvious how to install & use this, so recording my steps here:
gem "turbo_test"
ENV["RAILS_ENV"] = "test"
worker do |index| index = index + 1 ENV['TEST_ENV_NUMBER'] = index == 1 ? "" : index.to_s
system("bin/rails", "db:drop", "db:create", "db:migrate") end
4. Run with `bundle exec turbo_test`
Yes, that looks acceptable to me. Did it work as expected?
Not yet, because databases did not exist. See https://github.com/ioquatix/turbo_test/discussions/8 for steps necessary before turbo_test can be run.
It wasn't obvious how to install & use this, so recording my steps here:
gem "turbo_test"
worker do |index| index = index + 1 ENV['TEST_ENV_NUMBER'] = index == 1 ? "" : index.to_s
create a database for each worker
system("bin/rails", "db:drop", "db:create", "db:migrate") end