Files
demo-oidc/run_tests.sh
Rene Luria 0e3311df8e docs: update README and add test infrastructure
- 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
2025-08-08 10:54:56 +02:00

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