Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken suite after upgrading 3.1.0 to 3.7.0 due to removal of ENV["RAILS_ENV"] || "test" #817

Open
smlsml opened this issue Apr 30, 2021 · 2 comments

Comments

@smlsml
Copy link

smlsml commented Apr 30, 2021

Hello,

Our test suite runs our application against SQLite, Postgres, and SQL-Server. We use different RAILS_ENV settings for each of these "test_sqlite", "test_postgres", "test_sqlserver". The change in 3.2.0 to no longer honor RAILS_ENV prevents this from working.

Could we perhaps have a different/new environment variable so we can retain the old functionality but avoid the bug you all were trying to fix? Something like PARALLEL_RAILS_ENV or something that would normally not be set except when really needed?

Thanks!

@grosser
Copy link
Owner

grosser commented Apr 30, 2021

#776 is what you are talking about I assume

yeah, an extra env var would work, PR welcome
if you have some other smart workaround that would be great too, idk how other test frameworks handle this sprint weirdness :(
... your usecase is less common afaik, so changing the default is not really an option

@smlsml
Copy link
Author

smlsml commented Apr 30, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants