Home

testpiramide

Testpiramide is a model in software testing that describes how to balance automated tests across different levels. The idea is to have many fast, reliable unit tests at the bottom, a smaller but substantial layer of service or integration tests in the middle, and a thin, slow top layer of end-to-end or GUI tests. The pyramid emphasizes rapid feedback during development while validating interactions between components without overrelying on the user interface.

Origin and adoption: The concept was popularized by Mike Cohn in his 2009 book Succeeding with Agile

Rationale: A larger base of unit tests provides fast feedback during refactoring, with fewer but meaningful

Variations and criticism: Some practitioners discuss an inverted pyramid to reflect emphasis on integration or UI

Software
Development
and
in
related
writings
and
talks.
It
is
often
depicted
with
three
tiers
labeled
unit
tests,
service
or
integration
tests,
and
GUI
or
end-to-end
tests,
though
teams
tailor
the
levels
to
their
technology
stack
(for
example
including
contract
tests
or
component
tests
in
the
middle).
integration
tests
verifying
interactions
with
external
systems
and
databases,
and
a
small
number
of
end-to-end
tests
that
exercise
user
workflows
but
are
more
expensive
to
run
and
maintain.
The
aim
is
a
reliable,
maintainable
test
suite
and
lower
long-term
costs.
testing
in
certain
stacks.
Critics
argue
that
a
rigid
pyramid
can
be
misleading
and
that
testing
strategies
should
be
driven
by
risk,
domain,
and
continuous
delivery
needs.
In
practice,
modern
approaches
often
combine
contract
testing,
component
testing,
and
exploratory
testing
alongside
traditional
unit
and
integration
tests.