You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
I'd like to support a workflow where Ruma can be developed with only Docker Compose, not requiring Postgres, diesel-cli, or even Rust to be installed on the host computer.
Right now the procedure for running the test suite looks like this:
cargo test --no-run to make sure there are no compilation errors before starting the heavy machinery.
Start the test database in a Docker container.
Run diesel-cli's commands to create the database and run the migrations.
cargo test
A better flow would be to have the test code itself manage the creation (or drop and recreation) of the test database and migrations. Then everything could be wired up with Docker Compose and there could be a script that did something like docker-compose run --rm cargo test, which would start a dependent "postgres" service, but not require any external tooling to manage stuff.
The text was updated successfully, but these errors were encountered:
This is done, but I'm gonna leave this issue open so that the internals of the test module can be cleaned up a bit in the event that diesel_cli adds a public API as mentioned in the comment above.
I'd like to support a workflow where Ruma can be developed with only Docker Compose, not requiring Postgres, diesel-cli, or even Rust to be installed on the host computer.
Right now the procedure for running the test suite looks like this:
cargo test --no-run
to make sure there are no compilation errors before starting the heavy machinery.cargo test
A better flow would be to have the test code itself manage the creation (or drop and recreation) of the test database and migrations. Then everything could be wired up with Docker Compose and there could be a script that did something like
docker-compose run --rm cargo test
, which would start a dependent "postgres" service, but not require any external tooling to manage stuff.The text was updated successfully, but these errors were encountered: