- 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
27 lines
591 B
Bash
Executable File
27 lines
591 B
Bash
Executable File
#!/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" |