test_data
test_data copied to clipboard
A fast & reliable system for managing your Rails application's test data
Yes, I've allowed myself to get distracted by Rails 7.1 and sqlite support. I'm getting small test failures due to 7.1 and have been fixing them in small commits. Now...
Is it possible to dump the dockerized PostgreSQL database (`docker-compose`)? Currently, there is the error reported that the database is not accessible: `[test_data:error] pg_dump: error: connection to server on socket...
I ran install against a Rails 7.1 app and got this stack trace: ```sh ❯ bin/rake test_data:install identical config/environments/test_data.rb identical config/initializers/test_data.rb rake aborted! Psych::AliasesNotEnabled: Alias parsing was not enabled. To...
:wave: Hey there! Love all the OSS work that Test Double does - and all of the thought leadership that comes out of the crew. I was working with a...
```sh ** Invoke test_data:initialize (first_time) ** Invoke test_data:verify_config (first_time) ** Execute test_data:verify_config ** Invoke environment (first_time) ** Execute environment DEPRECATION WARNING: `Rails.application.secrets` is deprecated in favor of `Rails.application.credentials` and will...
This runs green on my fork.
If an `application_test_data` database exists and is non-empty, `rake test_data:load` will fail. But it may not be obvious to the user if the test_data in git is newer or older...
Instead of using `pg_dump` and executing data via SQL files, @dkubb raised the idea that maybe [postgres template databases](https://www.postgresql.org/docs/current/manage-ag-templatedbs.html) could be used here?