aboutsummaryrefslogtreecommitdiffstats
path: root/rust/README.md
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-23 22:25:30 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-24 15:21:32 -0700
commit9479b3389907f3844a13d5e6cf881e27901b5aab (patch)
tree3698b0296eb7f07662a55eb184b2ed533a49e8ca /rust/README.md
parent32e69d59150a2badfd72c62753414cbb1eb37c73 (diff)
downloadfatcat-9479b3389907f3844a13d5e6cf881e27901b5aab.tar.gz
fatcat-9479b3389907f3844a13d5e6cf881e27901b5aab.zip
how to run tests (single threaded)
Diffstat (limited to 'rust/README.md')
-rw-r--r--rust/README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/README.md b/rust/README.md
index 618f6971..9242b599 100644
--- a/rust/README.md
+++ b/rust/README.md
@@ -15,6 +15,7 @@ blow the entire database away.
Create a `.env` file with configuration:
DATABASE_URL=postgres://fatcat:tactaf@localhost/fatcat_rs
+ TEST_DATABASE_URL=postgres://fatcat:tactaf@localhost/fatcat_rs_test
Re-create database from scratch:
@@ -24,6 +25,10 @@ Build and run:
cargo run
+Tests:
+
+ cargo test -- --test-threads 1
+
### Special Tricks
Regenerate API schemas: