2020-06-27 13:28:45 +00:00
|
|
|
### Tests
|
|
|
|
|
|
|
|
#### Rust
|
|
|
|
|
|
|
|
After installing [local development dependencies](contributing_local_development.md), run the
|
|
|
|
following commands in the `server` subfolder:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;"
|
|
|
|
export DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
|
|
|
diesel migration run
|
2020-07-10 18:15:41 +00:00
|
|
|
RUST_TEST_THREADS=1 cargo test --workspace
|
2020-06-27 13:28:45 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Federation
|
|
|
|
|
|
|
|
Install the [Docker development dependencies](contributing_docker_development.md), and execute
|
|
|
|
`docker/federation-test/run-tests.sh`
|