chat-bot / run_tests.sh
surahj's picture
Initial commit: LLM Chat Interface for HF Spaces
c2f9396
raw
history blame contribute delete
774 Bytes
#!/bin/bash
# LLM API Test Runner
# This script sets up the environment and runs the test suite
echo "πŸš€ Starting LLM API Test Suite..."
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "πŸ“¦ Creating virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
echo "πŸ”§ Activating virtual environment..."
source venv/bin/activate
# Upgrade pip
echo "⬆️ Upgrading pip..."
pip install --upgrade pip
# Install dependencies
echo "πŸ“š Installing dependencies..."
pip install -r requirements.txt
# Run tests
echo "πŸ§ͺ Running test suite..."
python -m pytest tests/ -v --cov=app --cov-report=term-missing --cov-report=html
echo "βœ… Test suite completed!"
echo "πŸ“Š Coverage report generated in htmlcov/index.html"