Testing Guide
The MangroveAI test suite uses pytest with markers for selective test execution, enabling fast feedback during development and comprehensive testing in CI/CD.Test Categories
| Marker | Speed | Count | Description |
|---|---|---|---|
@pytest.mark.fast | <0.1s each | ~70 | Unit tests with mocked dependencies |
@pytest.mark.slow | 0.1-5s each | ~103 | Database CRUD and API endpoint tests |
@pytest.mark.integration | >5s each | ~4 | End-to-end workflows with external services |
@pytest.mark.performance | varies | 0 | Load testing and benchmarks |