summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-06-27 09:44:56 -0400
committerDessalines <tyhou13@gmx.com>2020-06-27 09:44:56 -0400
commitfab33d678b0f922c893c92bd70517b9c186c5a4c (patch)
tree9fb95e5bc561976d94add91c44d78b35686d08cf /docs
parentda2bb724e9ab631410df7bfe550c57ecb350de56 (diff)
parentafe3b6b2fcaf08a84f92bfdff9228e54132e2de7 (diff)
Merge remote-tracking branch 'yerba/test-docs'
Diffstat (limited to 'docs')
-rw-r--r--docs/src/SUMMARY.md1
-rw-r--r--docs/src/contributing_tests.md18
2 files changed, 19 insertions, 0 deletions
diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md
index bff5cbf6..a2bf5856 100644
--- a/docs/src/SUMMARY.md
+++ b/docs/src/SUMMARY.md
@@ -14,6 +14,7 @@
- [Contributing](contributing.md)
- [Docker Development](contributing_docker_development.md)
- [Local Development](contributing_local_development.md)
+ - [Tests](contributing_tests.md)
- [Federation Development](contributing_federation_development.md)
- [Websocket/HTTP API](contributing_websocket_http_api.md)
- [ActivityPub API Outline](contributing_apub_api_outline.md)
diff --git a/docs/src/contributing_tests.md b/docs/src/contributing_tests.md
new file mode 100644
index 00000000..13e5d122
--- /dev/null
+++ b/docs/src/contributing_tests.md
@@ -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`