# Test Pyramid Inversion

Record: `arch:test-pyramid-inversion`
Kind: anti-pattern
Layer: [Enforcement Core](https://banes-lab.com/records/layer/enforcement-core.md)
Severity: discouraged
Scope: contract_compatibility
Canonical: https://banes-lab.com/ontology#arch-test-pyramid-inversion

## Repair

- Refactored by: add_unit_tests, contract_tests, component_tests, property_tests, reduce_E2E_scope
- Detected by: high_E2E_ratio, slow_CI, flaky_integration_tests, low_unit_contract_coverage
- Violated by: Rely mainly on slow, brittle end-to-end tests while unit, [contract](https://banes-lab.com/records/lex/contracts.md), component, and property tests are sparse.

## referenced-by

- [Testability](https://banes-lab.com/records/arch/testability.md)
