]> Untitled Git - lemmy.git/blob - docs/src/contributing_tests.md
Merge remote-tracking branch 'yerba/test-docs'
[lemmy.git] / docs / src / contributing_tests.md
1 ### Tests
2
3 #### Rust
4
5 After installing [local development dependencies](contributing_local_development.md), run the
6 following commands in the `server` subfolder:
7
8 ```bash
9 psql -U lemmy -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;"
10 export DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
11 diesel migration run
12 RUST_TEST_THREADS=1 cargo test
13 ```
14
15 ### Federation
16
17 Install the [Docker development dependencies](contributing_docker_development.md), and execute
18 `docker/federation-test/run-tests.sh`