4 psql -U lemmy -d postgres -c "DROP DATABASE lemmy;"
5 psql -U lemmy -d postgres -c "CREATE DATABASE lemmy;"
7 export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
8 # tests are executed in working directory crates/api (or similar),
9 # so to load the config we need to traverse to the repo root
10 export LEMMY_CONFIG_LOCATION=../../config/config.hjson
12 cargo test -p lemmy_db_views --no-fail-fast --all-features -- --nocapture
13 # Add this to do printlns: -- --nocapture