Files
AI-Trader/docs/developer/testing.md
Bill 6f19c9dbe9 docs: update developer docs for AI-Trader-Server rebrand
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
2025-11-01 11:56:58 -04:00

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.