O2Sound_ver2_final/backend/run-tests.bat

39 lines
1.2 KiB
Batchfile

@echo off
REM Windows용 테스트 실행 스크립트
echo 🧪 Running Backend API Tests...
echo ================================
REM 환경변수 설정
set TESTING=1
REM 테스트 실행 옵션
if "%1"=="coverage" (
echo 📊 Running tests with coverage...
poetry run pytest tests/ --cov=app --cov-report=html --cov-report=term-missing
) else if "%1"=="verbose" (
echo 🔍 Running tests in verbose mode...
poetry run pytest tests/ -v
) else if "%1"=="auth" (
echo 🔐 Running auth tests only...
poetry run pytest tests/api/v1/test_auth.py -v
) else if "%1"=="user" (
echo 👤 Running user tests only...
poetry run pytest tests/api/v1/test_user.py -v
) else if "%1"=="moviemaker" (
echo 🎬 Running moviemaker tests only...
poetry run pytest tests/api/v1/test_moviemakers.py -v
) else if "%1"=="social" (
echo 🌐 Running social tests only...
poetry run pytest tests/api/v1/test_social.py -v
) else if "%1"=="video" (
echo 📹 Running video tests only...
poetry run pytest tests/api/v1/test_uservideo.py -v
) else (
echo 🚀 Running all tests...
poetry run pytest tests/
)
echo ================================
echo ✅ Test execution completed!