- Enhance .gitignore with comprehensive Python patterns - Improve README with better setup and testing instructions - Add test infrastructure: * Test requirements file * Environment setup script * Test runner script * Comprehensive test suite * Coverage configuration
25 lines
600 B
Bash
Executable File
25 lines
600 B
Bash
Executable File
#!/bin/bash
|
|
# run_tests.sh
|
|
|
|
# Check if virtual environment exists
|
|
if [ ! -d "venv" ]; then
|
|
echo "Virtual environment not found. Setting up..."
|
|
./setup_test_env.sh
|
|
fi
|
|
|
|
# Activate the virtual environment
|
|
source venv/bin/activate
|
|
|
|
# Run tests with coverage
|
|
echo "Running tests with coverage..."
|
|
coverage erase # Clear any previous coverage data
|
|
python -m pytest tests/ --cov=. --cov-config=.coveragerc -v
|
|
|
|
# Generate HTML coverage report
|
|
echo "Generating HTML coverage report..."
|
|
coverage html
|
|
|
|
echo "Coverage report generated in htmlcov/ directory"
|
|
|
|
# Deactivate virtual environment
|
|
deactivate |