mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: make test script fail if tests fail [ci skip]
This commit is contained in:
parent
fe0f41cecb
commit
13cf911edf
@ -33,9 +33,12 @@ echo ""
|
|||||||
|
|
||||||
echo "Running test collection ..."
|
echo "Running test collection ..."
|
||||||
newman run "Wakapi API Tests.postman_collection.json"
|
newman run "Wakapi API Tests.postman_collection.json"
|
||||||
|
exit_code=$?
|
||||||
|
|
||||||
echo "Shutting down Wakapi ..."
|
echo "Shutting down Wakapi ..."
|
||||||
kill -TERM $pid
|
kill -TERM $pid
|
||||||
|
|
||||||
echo "Deleting database ..."
|
echo "Deleting database ..."
|
||||||
rm wakapi_testing.db
|
rm wakapi_testing.db
|
||||||
|
|
||||||
|
exit $exit_code
|
Loading…
Reference in New Issue
Block a user