Initial commit
This commit is contained in:
22
tests/run_tests.sh
Executable file
22
tests/run_tests.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
cd /app
|
||||
pip install pytest pytest-asyncio httpx --break-system-packages -q 2>/dev/null
|
||||
|
||||
echo "============================================="
|
||||
echo " Life OS Dynamic Test Suite"
|
||||
echo "============================================="
|
||||
echo ""
|
||||
|
||||
case "${1}" in
|
||||
smoke) echo ">> Smoke tests"; python -m pytest tests/test_smoke_dynamic.py -v --tb=short ;;
|
||||
crud) echo ">> CRUD tests"; python -m pytest tests/test_crud_dynamic.py -v --tb=short ;;
|
||||
logic) echo ">> Business logic"; python -m pytest tests/test_business_logic.py -v --tb=short ;;
|
||||
report) echo ">> Route report"; python -m tests.route_report ;;
|
||||
fast) echo ">> Smoke, stop on fail"; python -m pytest tests/test_smoke_dynamic.py -v --tb=short -x ;;
|
||||
"") echo ">> Full suite"; python -m pytest tests/ -v --tb=short ;;
|
||||
*) echo ">> Custom: $@"; python -m pytest tests/ "$@" ;;
|
||||
esac
|
||||
|
||||
echo ""
|
||||
echo "Done"
|
||||
Reference in New Issue
Block a user