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
This commit is contained in:
25
run_tests.sh
Executable file
25
run_tests.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user