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:
27
setup_test_env.sh
Executable file
27
setup_test_env.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
# setup_test_env.sh
|
||||
|
||||
# Remove existing virtual environment if it exists
|
||||
if [ -d "venv" ]; then
|
||||
echo "Removing existing virtual environment..."
|
||||
rm -rf venv
|
||||
fi
|
||||
|
||||
# Create a virtual environment
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate the virtual environment
|
||||
source venv/bin/activate
|
||||
|
||||
# Upgrade pip
|
||||
pip install --upgrade pip
|
||||
|
||||
# Install application dependencies
|
||||
pip install -r requirements.txt
|
||||
|
||||
# Install test dependencies
|
||||
pip install -r requirements-test.txt
|
||||
|
||||
echo "Virtual environment setup complete!"
|
||||
echo "To activate the virtual environment, run:"
|
||||
echo "source venv/bin/activate"
|
||||
Reference in New Issue
Block a user