felicity-lims/felicity/scripts/test.sh
2024-07-28 10:25:31 +02:00

20 lines
593 B
Bash
Executable file

#!/usr/bin/env bash
set -e
set -x
export TESTING=True
if [[ "$1" == "unit" ]]; then
pytest felicity/tests/unit --asyncio-mode=strict -x
elif [[ "$1" == "integration" ]]; then
pytest felicity/tests/integration --asyncio-mode=strict -x
else
pytest felicity/tests/unit --asyncio-mode=strict -x
pytest felicity/tests/integration --asyncio-mode=strict -x
fi
export TESTING=False
# manual with stop on first failure
# export TESTING=True && pytest felicity/tests/unit --asyncio-mode=strict -x
# export TESTING=True && pytest felicity/tests/integration --asyncio-mode=strict -x