SYSTEM-DESIGN
    beginner

    Testing Strategy: The Test Pyramid

    Software Engineer path · lesson 90 of 99

    Test Pyramid Visualizer
    Healthy Pyramid

    Fewest, slowest, most expensive

    Most, fastest, cheapest

    Unit Tests

    1.2 s typical

    Integration Tests

    18 s typical

    End-to-End / UI Tests

    4 m 10 s typical

    Where in the pyramid?

    Sort

    Sort each test description into its layer.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Unit

    Drop items here

    Integration

    Drop items here

    End-to-end

    Drop items here
    6 pieces left to place

    Test your knowledge

    20 questions
    Question 1 of 20
    Score: 0

    What does a unit test typically verify?

    The short version

    Think of the pyramid like health screening: a thermometer (unit test) quickly checks one vital sign in isolation; a blood panel (integration test) checks how several systems interact; a full-body MRI (e2e test) catches anything but takes an hour and costs a lot. You get a thermometer reading every morning, not an MRI.

    Interview Questions

    Google
    Meta
    Amazon
    Stripe
    Stripe
    Netflix

    Love this visualization?

    Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.

    100% free • No credit card required