Testpyramide (EN)

Concept

Model for distributing test types with many unit tests and few end-to-end tests

Test Pyramid Architecture

flowchart TD     A[End-to-End Tests
10%] --> B[Integration Tests
30%] B --> C[Unit Tests
60%] style A fill:#f9f,stroke:#333,stroke-width:2px style B fill:#bbf,stroke:#333,stroke-width:2px style C fill:#bfb,stroke:#333,stroke-width:2px

Characteristics

  • Broad Base: Many fast unit tests
  • Middle Layer: Moderate number of integration tests
  • Peak: Few but comprehensive end-to-end tests
  • Better maintainability through isolated tests
  • Faster feedback loops through unit tests
Quelle: AI Generated