Source: Commanded EventStore 1.4.10.
The portable upstream suite runs against real SQLite. The 15 cases below remain
in the suite with :postgres_only and explicit skip reasons.
Adaptations
- SQL queries return maps with
rowsandnum_rows. Transactions use the SQLite adapter; caller rollback must undo event appends and links. - Notification tests observe committed event batches through PubSub. Reconnect tests restart the listener or SQLite connection.
- Reopening tests use an API-generated fixture with events, links, snapshots, and subscription checkpoints. Schema initialization is idempotent.
JsonbSerializerreconstructs only the outer event struct. Nested JSON objects keep string keys, unlike upstream's recursive atom conversion in plain maps.
PostgreSQL-only exclusions
Connection configuration
These config_test.exs cases require PostgreSQL connection settings or
pg_stat_activity:
default connections do not have application name setupparse database url from environment variableparse session_mode_urlparse socketparse socket_dirparse urlparse url with encoded hash in passwordparse url with query parameterspasses parent config options to session mode pool configsuccessfully connects with the application name setup
Connection pool counts
shared_connection_pool_test.exs — ensure database connections are shared between instances
requires pg_stat_activity backend counts. SQLite sharing and ownership tests
remain enabled.
Schema upgrades
These cases require historical PostgreSQL archives, migration locks, or
pg_dump schema comparisons:
migrate_event_store_test.exs—should be identical to new event store schemamigrate_event_store_test.exs—should prevent migrations from running concurrently
These list_event_store_migrations_test.exs cases require historical pending
and completed version records:
exits with status 1 when running via mixshould list completed and pending migrations
Verification
Run just precommit, just test-all, and just smoke. All other cases run by
default. The matrix covers the default, JSONB, text-ID, and standalone migration
configurations. See MANUAL_TESTING.md for the smoke scenarios.