You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lemmy/docs/src/contributing_tests.md

525 B

Tests

Rust

After installing local development dependencies, run the following commands in the server subfolder:

psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;"
export DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
diesel migration run
RUST_TEST_THREADS=1 cargo test --workspace

Federation

Install the Docker development dependencies, and execute docker/federation-test/run-tests.sh