mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 00:01:25 +00:00
Merge remote-tracking branch 'yerba/test-docs'
This commit is contained in:
commit
fab33d678b
2 changed files with 19 additions and 0 deletions
1
docs/src/SUMMARY.md
vendored
1
docs/src/SUMMARY.md
vendored
|
@ -14,6 +14,7 @@
|
||||||
- [Contributing](contributing.md)
|
- [Contributing](contributing.md)
|
||||||
- [Docker Development](contributing_docker_development.md)
|
- [Docker Development](contributing_docker_development.md)
|
||||||
- [Local Development](contributing_local_development.md)
|
- [Local Development](contributing_local_development.md)
|
||||||
|
- [Tests](contributing_tests.md)
|
||||||
- [Federation Development](contributing_federation_development.md)
|
- [Federation Development](contributing_federation_development.md)
|
||||||
- [Websocket/HTTP API](contributing_websocket_http_api.md)
|
- [Websocket/HTTP API](contributing_websocket_http_api.md)
|
||||||
- [ActivityPub API Outline](contributing_apub_api_outline.md)
|
- [ActivityPub API Outline](contributing_apub_api_outline.md)
|
||||||
|
|
18
docs/src/contributing_tests.md
vendored
Normal file
18
docs/src/contributing_tests.md
vendored
Normal file
|
@ -0,0 +1,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`
|
Loading…
Reference in a new issue