mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-02 01:27:24 -04:00
Update developer documentation files: - CONTRIBUTING.md: Update title to AI-Trader-Server - development-setup.md: Update git clone URL from github.com/Xe138/AI-Trader to github.com/Xe138/AI-Trader-Server - testing.md: Update title to reference AI-Trader-Server Part of Phase 3: Developer & Deployment Documentation
979 B
979 B
Testing Guide
Guide for testing AI-Trader-Server during development.
Automated Testing
Docker Build Validation
chmod +x scripts/*.sh
bash scripts/validate_docker_build.sh
Validates:
- Docker installation
- Environment configuration
- Image build
- Container startup
- Health endpoint
API Endpoint Testing
bash scripts/test_api_endpoints.sh
Tests all API endpoints with real simulations.
Unit Tests
# Install dependencies
pip install -r requirements.txt
# Run tests
pytest tests/ -v
# With coverage
pytest tests/ -v --cov=api --cov-report=term-missing
# Specific test file
pytest tests/unit/test_job_manager.py -v
Integration Tests
# Run integration tests only
pytest tests/integration/ -v
# Test with real API server
docker-compose up -d
pytest tests/integration/test_api_endpoints.py -v
For detailed testing procedures, see root TESTING_GUIDE.md.