REL08-BP02ReliabilityREL83 of 5 practices publishedReference content

Integrate functional testing as part of your deployment

Framework question: How do you implement change?

Risk if not established
High
Framework verified
14 Nov 2026

AWS Well-Architected Framework — REL08-BP02 Integrate functional testing as part of your deployment

Executive summary

Why this practice matters

Run automated unit and integration tests in the deployment pipeline for every change, and stop or roll back the release when they fail. Unit tests check that each piece of code behaves as intended and honours its contracts, while integration tests in a production-like environment confirm that the system meets its functional requirements.

Business impact

  • Stops defective releases before customers are affected.
  • Confirms that features work as the requirements describe.
  • Protects API contracts that other teams and customers rely on.
  • Gives quick, consistent feedback on every change.

Assign

Accountable and responsible roles

Responsibilities are held separately from roles, so accountability type and typical roles are stated explicitly.

ResponsibilityAccountability type

Write and maintain tests

Write unit and integration tests for each change and keep the suite maintainable.

Typical roles: Software Engineer, Quality Assurance / Test, Software Engineer, Quality Assurance / Test

responsible

Integrate tests into the pipeline

Run tests automatically at each stage, provide production-like test environments, and block or roll back on failure.

Typical roles: DevOps Engineer, Cloud / Platform Engineer, DevOps Engineer, Cloud / Platform Engineer

responsible

Own release quality

Set the rule that failing tests stop a release, and approve any exception.

Typical roles: Team Lead / Manager, Service Owner, Team Lead / Manager, Service Owner

accountable

Assessment

Assessment and evidence state

States describe how far the practice has moved from intent to something continuously validated.

  1. 0

    Not Assessed

    No documented evaluation of the practice has been performed.

    Indicators

    • No one has examined which functional behaviour is checked automatically before release.
  2. 1

    Not Implemented

    The practice is absent or applied only ad hoc.

    Indicators

    • Testing is manual and happens outside the pipeline.
    • Releases go ahead regardless of results.
  3. 2

    Partially Implemented

    The practice is applied to some workloads or components, with known gaps.

    Indicators

    • Unit tests run in the pipeline, but integration tests are partial or run by hand.
    • Failures are sometimes overridden.
  4. 3

    Implemented

    The practice is applied consistently across defined scope, with evidence.

    Indicators

    • Unit and integration tests run automatically for every change, in a production-like environment.
    • A test failure halts or rolls back the deployment.
  5. 4

    Continuously Validated

    The practice is regularly tested and improved from measured results.

    Indicators

    • Test results are analysed for regressions and gaps, and the suite is improved.
    • Production defects that tests should have caught are falling.

Assessment dimensions

  • Unit test practice

    Practice-specific

    Absent · Partial · Operational and verified

  • Integration test coverage

    Practice-specific

    Absent · Partial · Operational and verified

  • Pipeline gating

    Practice-specific

    Absent · Partial · Operational and verified

  • Environment fidelity

    Practice-specific

    Absent · Partial · Operational and verified

Caution

Do not award maturity for a high test count alone. Check that unit and integration tests run automatically in the pipeline, that failures stop or roll back releases, and that integration tests run in a production-like environment.

Standard

What you should be able to demonstrate

Statements a reviewer should be able to confirm from evidence, not from intent.

  • Writing and running unit tests is a standard coding requirement, often written before the code itself.
  • Automated integration tests cover the identified testable features and simulate user interactions.
  • Tests run automatically in the pipeline, and a failure halts or rolls back the deployment.
  • Integration tests run in a pre-production environment that closely matches production.
  • Test results are tracked over time, and the suite is kept maintainable as the application grows.

Trade-offs to hold in view

  • Writing and maintaining tests takes development time.
  • Large test suites lengthen the pipeline and delay feedback.
  • Production-like test environments have a running cost.

Assess

Questions to ask

Each question exposes the difference between an intention and an operating practice.

  • discovery

    Which features and API contracts have no automated test in the pipeline?

    Finds functional gaps in test coverage.

    Usually asked by: Quality Assurance / Test, Software Engineer

  • challenge

    When did we last release with a failing or skipped test, and who decided that was acceptable?

    Tests whether the gate is respected.

    Usually asked by: Quality Assurance / Test, Team Lead / Manager

  • evidence

    Can we show pipeline runs where a test failure stopped or rolled back a deployment?

    Requires proof that tests actually gate releases.

    Usually asked by: DevOps Engineer, Quality Assurance / Test

  • executive

    How many customer-reported defects in the last quarter would an automated test have caught?

    Links testing gaps to customer impact.

    Usually asked by: Service Owner, Technology Executive

Evidence

Required and expected evidence

Reusable evidence definitions held once in the evidence library and referenced by every practice that relies on them. Each links to what good evidence looks like and to worked examples.

EVD-TEST-001coreReusable

Requirements Verification Matrix

A traceability record mapping material requirements to their verification method, test case or other objective evidence, together with verification status and references to the resulting evidence.

Shows which functional requirements are covered by automated tests and their latest results.

Minimum expected content

  • Requirement identifier and concise requirement statement or reference
  • Requirement source/baseline such as SRS or NFR specification
  • Requirement priority or criticality where relevant
  • Verification method such as test, inspection, analysis, demonstration or operational measurement
  • Test case, scenario, control result or evidence identifier/reference
  • Expected/acceptance condition
  • Environment or operating condition where material
  • Verification owner or responsible role
  • Current verification status such as not run, pass, fail, partial, blocked or not applicable
  • Date/version of the latest relevant verification
  • Link/reference to the actual result, report, automated test run or other objective evidence
  • Defect, exception or remediation reference where the requirement is not satisfied
  • Notes explaining justified exclusions, substitutions or changes in verification approach

Anti-patterns

  • A requirements list with a single blanket statement that all requirements are tested
  • Mapping requirements to test names with no acceptance condition or result evidence
  • Treating the existence of automated tests as proof that every material requirement is covered
  • Removing failed or blocked requirements from the final matrix
  • A matrix that is created for sign-off and never maintained when requirements or tests change
  • Tests mapped to requirements only retrospectively after delivery with no evidence they influenced verification planning
  • Using one broad end-to-end test as the sole verification for many unrelated requirements
  • No distinction between functional verification, quality/NFR verification and operational measurement where different evidence is needed

Review: Maintain alongside requirements and test assets. Review whenever material requirements, acceptance criteria, implementation behaviour or verification methods change, and before material acceptance/release decisions.

EVD-REQ-001supportingReusable

System / Software Requirements Specification

A controlled specification defining what a system or software product must do and the qualities, interfaces, constraints and acceptance conditions it must satisfy, with traceability to stakeholder needs and verification.

Records the functional requirements the integration tests validate.

Minimum expected content

  • Purpose, scope and system/product context
  • Relevant stakeholders/users and source needs
  • Functional requirements or equivalent behavioural outcomes
  • Non-functional/quality requirements or references to the canonical NFR specification
  • External interface and integration requirements where material
  • Constraints, assumptions and dependencies
  • Legal/regulatory/data requirements where relevant
  • Unique requirement identifiers or equivalent traceability mechanism
  • Priority or criticality where relevant
  • Verification method and measurable acceptance criteria for material requirements
  • Traceability to source needs, design/decision records and test evidence
  • Version/status, owner and approval/review record

Anti-patterns

  • A long document containing mostly prose with no identifiable or testable requirements
  • Requirements copied from a template without relevance to the workload
  • Solution choices disguised as requirements without recording the underlying need or decision
  • Functional requirements captured while reliability, security, performance or operational qualities remain implicit
  • No acceptance criteria or verification method
  • No traceability to stakeholder needs or downstream test evidence
  • A signed-off specification that no longer reflects the implemented/current system
  • Treating conformance to a template as proof of conformance to an external standard

Review: Maintain through delivery and change. Review when scope, stakeholder needs, architecture constraints or acceptance conditions materially change, and baseline/version at material approval points.

Diagnosis

Common evidence gaps

  • Bypassed failures

    Test failures are ignored or overridden to meet a deadline.

  • Tests outside the pipeline

    Tests are run by hand, or skipped through emergency workflows.

  • Unrepresentative environment

    Integration tests run somewhere that does not resemble production.

  • Brittle test suite

    The suite is hard to update, so it falls behind the application.

Implementation

Implementation guidance

Make unit tests a coding standard

Write tests for each function, ideally before the code, and run them before code is committed.

Build an integration test suite

Cover each testable feature with automated tests that simulate user actions and check expected outcomes, including on several browsers or devices for web and mobile apps.

Test in a production-like environment

Run integration tests in staging or pre-production environments that closely resemble production, deployed by the same mechanism.

Gate the pipeline on results

Use quality checks so failing tests block the pipeline or roll back the change, with notifications for stage failures.

Learn from test results

Look for patterns, regressions and weakly tested areas in results, and improve the suite and deployment process accordingly.

Measure

Measurements

  • Share of functional requirements with automated tests
  • Releases blocked or rolled back by failing tests
  • Releases made with failing or skipped tests
  • Defects found in production that tests should have caught

Related

Outcomes and practices

Business outcomes

    Practices