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