This commit is contained in:
9
backend/scripts/test.sh
Normal file
9
backend/scripts/test.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# ensure server is not started
|
||||
curl -s -X POST localhost:7001/admin/shutdown 2>&1 > /dev/null
|
||||
|
||||
# start server
|
||||
cargo run --features shutdown -- --port 7001 2>&1 > logs/nuchat.log &
|
||||
|
||||
# run tests
|
||||
cargo test | tee logs/test-output.log
|
||||
Reference in New Issue
Block a user