mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-21 07:22:53 +08:00
20 lines
593 B
Bash
Executable file
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
|