# Test Suite This directory contains automated tests for the FLARES project. ## Directory Structure ``` tests/ ├── unit/ # Unit tests for individual modules │ ├── test_updater.py # Security-critical updater module tests │ └── ... (more tests TBD) ├── integration/ # Integration tests for multi-component workflows └── fixtures/ # Test data and mock resources ``` ## Running Tests ```bash # Install development dependencies pip install -r requirements-dev.txt # Run all unit tests pytest tests/unit/ -v # Run specific test file pytest tests/unit/test_updater.py -v # Run with coverage pytest --cov=src tests/ -v ``` ## Test Coverage Goals - `updater.py`: 100% (security-critical) - Core modules: >80% - Overall project: >60% (initial target) ## Writing Tests See existing tests in `tests/unit/test_updater.py` for examples of: - Testing utility functions like `version_compare()` - Mocking external dependencies (QThread, HTTP requests) - Security-focused test cases