O2Sound_ver2_final/backend/run-tests-posix.sh

50 lines
1.3 KiB
Bash

#!/bin/sh
# POSIX 호환 테스트 실행 스크립트
echo "🧪 Running Backend API Tests..."
echo "================================"
# 환경변수 설정
TESTING=1
export TESTING
# 테스트 실행 옵션
case "$1" in
coverage)
echo "📊 Running tests with coverage..."
poetry run pytest tests/ --cov=app --cov-report=html --cov-report=term-missing
;;
verbose)
echo "🔍 Running tests in verbose mode..."
poetry run pytest tests/ -v
;;
auth)
echo "🔐 Running auth tests only..."
poetry run pytest tests/api/v1/test_auth.py -v
;;
user)
echo "👤 Running user tests only..."
poetry run pytest tests/api/v1/test_user.py -v
;;
moviemaker)
echo "🎬 Running moviemaker tests only..."
poetry run pytest tests/api/v1/test_moviemakers.py -v
;;
social)
echo "🌐 Running social tests only..."
poetry run pytest tests/api/v1/test_social.py -v
;;
video)
echo "📹 Running video tests only..."
poetry run pytest tests/api/v1/test_uservideo.py -v
;;
*)
echo "🚀 Running all tests..."
poetry run pytest tests/
;;
esac
echo "================================"
echo "✅ Test execution completed!"