Commit Graph

12 Commits

Author SHA1 Message Date
24539f236c Add multi-database test runner (test:all_databases)
Adds `bundle exec rails test:all_databases` which runs the full test
suite against every test database configured in database.yml in a single
command.

Convention: any top-level key starting with "test" that contains a Hash
is a test database. `test:` is the required primary; `test_<name>:` blocks
are optional additional adapters (e.g. test_sqlite, test_pg).

For each configured database the task:
  1. Checks the required adapter gem is available (skips with warning if not)
  2. Runs `rails db:test:prepare` to create and migrate the database
  3. Runs `rails test` and records pass/fail
  4. Prints a summary and exits non-zero if any database failed

Mechanism: a RAILS_DATABASE_YML env var points each subprocess to a
temporary database.yml that contains only the current test config.
config/application.rb(.dist) reads this var and overrides Rails'
database config path before initialisation, so no monkey-patching of
the test runner is required.

config/database.yml.dist is updated with documented examples for SQLite
and PostgreSQL additional test databases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 10:48:53 +00:00
magicfixin
5ffc6974f0 Improve installation process 2025-07-23 23:42:41 +02:00
769e4af603 Bring per-installation setting to application.rb 2024-06-04 00:47:50 +02:00
e905910719 Import previously missed settings to *.dist 2024-06-04 00:45:33 +02:00
9d97eb3f6f Add user status update 2023-05-17 23:40:09 +02:00
634ba7e901 Add access control and :forbidden error handling 2023-04-24 23:08:55 +02:00
2d95b11a34 Test registration e-mail 2023-04-19 00:31:52 +02:00
6d71d38680 Add registration redirection and mail confirmation sending 2023-04-15 23:52:02 +02:00
e29c060a39 Add user statuses and seed admin user 2023-04-01 02:29:59 +02:00
24f85d1d28 Add 'hosts' application setting 2023-03-14 23:39:31 +01:00
3ea1b29cb4 Set application name related values to FixinMe 2023-03-06 15:05:56 +01:00
2ecf06b751 rails generate devise:install 2023-03-06 01:48:07 +01:00