summaryrefslogtreecommitdiffstats
path: root/docs/src/contributing_tests.md
blob: 13e5d1222321f6444e271bc5c56e6a79494206a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
### 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
RUST_TEST_THREADS=1 cargo test
```

### Federation

Install the [Docker development dependencies](contributing_docker_development.md), and execute
`docker/federation-test/run-tests.sh`