Provide a way to prevent db command re-runs for test#429
Conversation
|
ℹ️ Optional job failed: Ruby jruby |
|
@alassek Thank you, I'm happy to bring this in, especially if it helps keep your usage of Hanami as clean as possible :) One caveat though: I think we should leave this undocumented (it's quite niche), and allow ourselves to change in the future. I expect our current "re-run against the test DB" approach to change once we can eventually create a proper API around database interactions in hanami-db. At that point we can think of a cleaner way of disabling the test re-runs. Does that sound OK to you? |
|
@timriley Yeah, leaving this undocumented feels right. I thought about suggesting a |
|
Now that I think about it, a |
At my workplace, we have a remote development environment named "development" that allows for free-form experimentation with our service infrastructure (yes, this is dumb. No, I can't do anything about it). This environment is isolated from any test systems, so we would like a way to explicitly switch off re-runs when performing
hanami dbcommands.Since we are using this ENV var anyway, there shouldn't be any harm in testing the value explicitly.