Implements complete integration test suite that validates the entire
video processing system in a containerized environment.
## Core Features
- **Video Processing Pipeline Tests**: Complete E2E validation including
encoding, thumbnails, sprites, and metadata extraction
- **Procrastinate Worker Integration**: Async job processing, queue
management, and error handling with version compatibility
- **Database Migration Testing**: Schema creation, version compatibility,
and production-like migration workflows
- **Docker Orchestration**: Dedicated test environment with PostgreSQL,
workers, and proper service dependencies
## Test Infrastructure
- **43 integration test cases** covering all major functionality
- **Containerized test environment** isolated from development
- **Automated CI/CD pipeline** with GitHub Actions
- **Performance benchmarking** and resource usage validation
- **Comprehensive error scenarios** and edge case handling
## Developer Tools
- `./scripts/run-integration-tests.sh` - Full-featured test runner
- `Makefile` - Simplified commands for common tasks
- `docker-compose.integration.yml` - Dedicated test environment
- GitHub Actions workflow with test matrix and artifact upload
## Test Coverage
- Multi-format video encoding (MP4, WebM, OGV)
- Quality preset validation (low, medium, high, ultra)
- Async job submission and processing
- Worker version compatibility (Procrastinate 2.x/3.x)
- Database schema migrations and rollbacks
- Concurrent processing scenarios
- Performance benchmarks and timeouts
Files Added:
- tests/integration/ - Complete test suite with fixtures
- docker-compose.integration.yml - Test environment configuration
- scripts/run-integration-tests.sh - Test runner with advanced options
- .github/workflows/integration-tests.yml - CI/CD pipeline
- Makefile - Development workflow automation
- Enhanced pyproject.toml with integration test dependencies
Usage:
```bash
make test-integration # Run all integration tests
./scripts/run-integration-tests.sh -v # Verbose output
./scripts/run-integration-tests.sh -k # Keep containers for debugging
make docker-test # Clean Docker test run
```