Testing
Running Tests
Local Testing
# Run all tests
pytest
# Run tests for specific app
pytest gyrinx/core/tests/
pytest gyrinx/content/tests/
# Run specific test file
pytest gyrinx/core/tests/test_models_core.py
# Run specific test function
pytest gyrinx/core/tests/test_models_core.py::test_list_creation
# Run with verbose output
pytest -v
# Run with coverage
pytest --cov=gyrinxDocker Testing
Test Organization
Directory Structure
Test Patterns
Database Tests
View Tests
Model Tests
Test Configuration
Static Files
Database
Fixtures
Writing Good Tests
Test Naming
Test Structure
Test Coverage
Performance
Integration with CI/CD
Common Issues
Static Files
Database Constraints
History Tracking
Last updated