What problem does it solve?
Eliminates flaky, misleading tests by defining a clear 3-tier testing strategy for Kailash that enforces real-infrastructure testing for integration and end-to-end levels, while keeping unit tests fast and isolated.
Core Features & Use Cases
- Tier 2/3 Real Infrastructure Policy (No mocking): Integration and E2E tests must use real DB/runtime/HTTP and explicitly block
@patch, MagicMock, and unittest.mock.
- Deterministic Test Organization: Prescribes a directory layout that separates tier1_unit, tier2_integration, and tier3_e2e responsibilities and uses shared fixtures via
conftest.py.
- Regression Design Guardrails: Requires behavioral regression tests that execute the real code path, and forbids “source-grep only” assertions for correctness.
- Release-Blocking Pipeline Regression: Mandates docs-exact end-to-end regression tests with deterministic output fingerprints for every taught pipeline.
- Optional Dependency Testing Pattern: Uses
pytest.importorskip to skip tests when optional extras (e.g., [hpo], [redis], [vault]) aren’t installed.
Quick Start
Ask for a testing plan that organizes your unit, integration, and end-to-end tests under the real-infrastructure policy for Kailash and explains what must not be mocked at tiers 2 and 3.