Phil McNeely

Quality · testing · delivery

How much quality is enough?

These are my views on software quality and testing, organized around how software ships now: AI writing and checking code, pipelines that deploy many times a day, and fixes that reach production in hours. The definition of quality hasn't changed. What counts as "enough" has, and it depends on how fast you can find a problem and undo it.

Long read · Phil McNeely

A bad change, caught and undoneillustration · not data
ERROR RATE TRAFFIC ON NEW VERSION SLO deploy · flag off canary 1% SLO breach → auto-rollback detect + restore fix ships · 1% 10% 100%

scroll the chart →

error rate share of traffic on the new version SLO threshold

Contents

  1. The argument
  2. 01What quality isValue to some person who matters, at some point in time.
  3. 02Two rules I don't bendTrust, but verify. If you didn't measure it, it didn't happen.
  4. 03How much is enoughReach × harm × time, and the changes you can't undo.
  5. Lower the odds Before merge
  6. 04What testing is forNine objectives, and the one that matters most at speed.
  7. 05The test layersStatic, unit, integration, system, end to end.
  8. 06CI / CD / CT / COSix delivery phases and what runs in each.
  9. Shrink the cost After deploy
  10. 07After the deployMonitoring as testing, dark launches, canaries, rollback.
  11. Who checks People, then AI
  12. 08People still testExploratory work, dojos, and a story.
  13. 09AI in the loopWhere AI helps, and why its output is a claim.
  14. How you know Measuring it
  15. 10Measuring itDORA, quality metrics, and reading them right.
  16. The practices
  17. 11Definition of DoneA short, measurable checklist that mirrors shippable.
  18. 12Defects, risk, debtPriorities, SLAs, and managing risk.
  19. 13Then and nowThe practice radar I used before AI, and where I'd put things today.
  20. 14The foundationsISO 25010, 5055, 29119, TMMi, the planning hierarchy.

01

What quality is

Software quality can mean many things. Any definition will vary with the context, and with the perspective from which it is seen.

Gerald Weinberg suggested "Quality is value to some person." James Bach and Michael Bolton extended this to "Quality is value to some person who matters." A more recent definition by David Greenlees states "Quality is value to some person who matters, at some point in time." That last clause matters more now than when it was written. The point in time keeps moving: what was good enough at 9 a.m. can be fixed by noon.

These lead to competing ideas of quality, which may or may not be valid. Customers, partners and developers may have different definitions of what good, quality software is.

A customer or partner might say

  • My data and transactions are secure.
  • The service or feature is available.
  • The service or feature works as it should.
  • The service or feature is usable in a timely manner.

A developer might say

  • I can easily understand the code; it's maintainable and extendable.
  • I can continuously test the code, and the defects found keep dropping in severity and number.
  • The code is secure, and the design meets all non-functional benchmarks.

The right definition is important in an organization, so that everyone in the stakeholder chain has a shared understanding, measures themselves against common standards, and improves toward a common goal. Here's the one I used at one company, at one point in time, in their context:

"Quality is making sure we give a consistent customer and partner experience using our services, which will help customer retention and future partnerships."

It's not universal. Yours should fit your context.

To satisfy that statement we need software that is reliable, performant, secure, usable and functional, to name a few. The way the product is designed, the way code is written, the way it is verified and the platform it is deployed on all play a part in how the product is perceived quality-wise.

Principles under the definition

  • Quality of software is a mindset, and NOT the responsibility of a few members of the team alone.
  • "Testing is an empirical technical investigation done to provide stakeholders with information about the quality of the product or service under test." (Kaner)
  • Testing is one of the factors contributing to quality, but there are others.
  • Testing is a skilled development activity, like writing code and like reviews; it starts when we start planning the work.
  • Testing shows the presence of mistakes; it can only reduce the number of unfound issues.
  • Exhaustive testing is impossible.
  • The cost of an error grows as it moves through the delivery lifecycle, so testing must begin at the earliest stages. (Section 03 says where that curve has flattened, and where it hasn't.)

02

Two rules I don't bend

Everything else on this page is context and judgment. These two are not.

Доверяй, но проверяй

doveryai, no proveryai · trust, but verify

I test to see, not to confirm. A green check is a claim. A passing build is a claim. An AI agent saying "done, all tests pass" is a claim. I trust the people and the tools, and I still look at the output.

Verify the thing that matters: what is served, not what is committed; what the test asserted, not that it was green; the element the healed locator found, not that it found one.

If you didn't measure it, it didn't happen

no measurement · no proof · no learning

A management cliché says what gets measured gets done. And what does not get measured does not get done, because it is easy to ignore. A deploy without a metric, a fix without a before-and-after, a "faster" with no timing: none of it happened.

Measure outcomes, not activity. Read numbers to learn, never as a target: the moment a metric becomes a goal, it gets gamed.

The two work together. Measurement is how you verify at scale; verification is how you know the measurement isn't lying. Section 10 covers what to measure; section 09 covers what verification looks like when the code, the tests and the reviewer may all be AI.

03

How much is enough updated

If we can put a fix out in a few hours, how much quality do we need before we ship, and how much testing?

The classic answer is the cost curve. A defect removed after the product has gone into production costs around 100 times more than one removed during requirements (Magowan). "When it comes to software quality, you can pay now or pay more later" (Wiegers). Too often, to move fast, teams skip some or all of the recommended tests, and "our roadmap this quarter is full" is the reason given.

That math is still right for some changes. But it was measured when shipping meant a quarterly release, a change board, and weeks to get a fix out. When a fix ships in hours and a flag turns a feature off in seconds, "later" got a lot cheaper, for some defects. So the useful question isn't "how much testing?" It's "what does it cost if this is wrong, and for how long?"

Cost of a defect ≈ reach × harm × timetry it
Harm per person
Can it be undone?

Reach
How many people does it hit?
  • Dark launch
  • Feature flag cohorts
  • Canary 1% → 10% → 100%
  • Ring deploys
Harm
How bad is it for each, and can it be undone?
  • Severity / priority
  • Reversible or one-way
  • Money, data, PII, legal
  • Trust
Time
How long until it's gone?
  • Time to detect (MTTD)
  • Time to restore (MTTR)
  • One-click rollback
  • Auto-rollback on SLO breach
Testing before merge lowers the odds a defect exists at all. Every other lever shrinks what it costs when one gets through. When the other levers are strong you can spend less up front; when they're weak, pre-merge testing is all you have. The gauge is a thinking tool, not a formula: share of users × harm weight × hours exposed, per 1,000 users.

The doors that only open one way

"Some decisions are consequential and irreversible or nearly irreversible – one-way doors – and these decisions must be made methodically, carefully, slowly, with great deliberation and consultation."

Jeff Bezos · Amazon shareholder letter, 2015

Bezos was writing about business decisions, but it maps exactly. Some changes don't get cheaper no matter how fast you deploy. For these the old bar stands: test before, as if you can't roll back, because you can't.

  • Money. A charge taken twice, a refund not issued, a transfer sent to the wrong place.
  • Data. Records written wrong, migrations, deletes, backfills. Rolling back code doesn't roll back rows.
  • Security and PII. You can't un-leak data.
  • Legal and regulatory. Accessibility law, privacy rules. Failure here is failure of the product, no matter how defect-free it has been working.
  • Messages. Emails, texts and push notifications can't be recalled.
  • Trust. A customer who hit the same bug three times doesn't come back when you fix it.

The Definition of Done section quotes a line I've always liked: done will be defined very differently if you're building firmware for pacemakers or an e-commerce portal. Inside one product, the checkout and the marketing banner are the pacemaker and the portal.

ChangeUndo?Bar before mergeBar after deploy
Copy, styling, layoutbehind a flagYes, secondsStatic, unit, visual checkDark launch, watch errors and conversion
New featurebehind a flagYes, secondsAll build-time layers; system tests on its critical flowCanary, SLOs, synthetic check, then ramp
Change to a revenue flowcheckout, payment, sign-upPartlyAll layers, contract tests, system tests on the $$$ flowsCanary with auto-rollback on SLO breach
Schema migration, backfillNoDry run on production-like data, backup, expand/contractVerify row counts and invariants, keep the old path alive
Auth, PII, payments securityNoSecurity review, tests, and threat model before"We'll watch it" is not a control

The precondition

"We can just fix it forward" is a claim, and it needs evidence. If you've never measured how long it takes you to notice a problem and roll it back, you don't know that it's fast. Measure MTTD and MTTR (rule two), rehearse the rollback, and only then lower the pre-merge bar. Until then, fast iteration is a hope, not a control.

Lower the odds

Before merge

04

What testing is for

Testing has nine objectives. At high delivery speed, number seven does most of the work.

  1. Prevent defects. Avoid mistakes in the early stages. Prevention means root cause analysis of past defects, then specific measures so those types don't happen again.
  2. Evaluate work products such as requirements, design, user stories and code. Find ambiguity or contradictions before a developer picks the work up. Reviews, walk-throughs and static analysis happen before code integrates. This is verification.
  3. Verify that all specified requirements are met. Ideally with a requirement traceability matrix, but a lightweight one, as lightweight as you can use. We're here to test and deliver quality, not up our page count.
  4. Validate that the product works as users and stakeholders expect. This is validation: checking the product after development, manually or automated, opaque box or transparent box, and by stakeholders through acceptance testing.
  5. Build confidence in the quality level. Fewer defects, higher satisfaction, lower maintenance costs.
  6. Reduce the risk of insufficient quality. Every project carries uncertainty: launch time, budget, technology, implementation, maintenance. Testing brings risk management in early so risks are found as soon as possible.
  7. Give stakeholders enough information to make informed decisions, especially about the level of quality. Be transparent: coverage, what is missing, what went wrong, and the constraints and risks behind them.
  8. Find defects, as early as possible. Unit testing finds them where they're cheapest; integration testing finds them at the touchpoints between systems; regression testing makes sure changes didn't add new ones; operational testing checks reliability and performance under maximum load.
  9. Comply with contractual, legal and regulatory requirements, and verify compliance. Accessibility law differs by country; the EU has strict rules on handling personal data. Failure here will fail the product no matter how defect-free it has been working. ISO/IEC/IEEE 29119 covers the testing standards themselves.

Why seven? When you ship many times a day, nobody reads a test report before each deploy. The pipeline, the dashboards and the alerts are the report, and the decision to ship is made by a gate or by a person looking at a canary graph. Testing's job is to make sure that information is there, correct, and in front of whoever decides.

05

The test layers

Where testing should live, and how much at each layer. Current thinking is more of a trophy than a pyramid.

Many of you have seen versions of the pyramid where layers got bigger or smaller depending on the thinking or bias of the presenter. Automated testing should be the primary approach at every layer, especially for repeatable, stable scenarios. Manual testing is for targeted exploratory work, usability reviews, and complex or high-risk features, particularly new functionality where automation doesn't yet give enough coverage.

run timeEnd to endfew · critical flows · real services run timeSystemgolden paths of the app under test build timeIntegrationmost of the effort · test doubles build timeUnitfast, many · TDD build timeStaticevery keystroke · lint, types, scans
build time ↓ static · unit · integrationrun time ↑ system · e2e
Width is relative effort. "Write tests. Not too many. Mostly integration." (Dodds) Chaos/resilience, accessibility and performance cut across the layers.

What every layer has in common

  • Tests run on every code change and every pipeline run, including on the developer's machine before check-in.
  • Failure to pass 100% of tests fails the pipeline or blocks the commit until fixed. A flaky test is fixed or quarantined, not retried until green.
  • Results are captured in a standard format (JUnit/xUnit or similar) and pushed to a data store, so pass/fail rates can be gathered over time. See rule two.
StaticChecked without running the codeReviews of stories, designs and code; static analysis; security scanning.

Static testing checks the software without executing it, two ways: review (requirements, design documents, source, test plans and cases, help and page content) and static analysis, where tools analyze code for structural defects.

Finds: undefined values, inconsistent interfaces between modules, unused variables, dead code, standards violations, security vulnerabilities, syntax violations, and requirements errors from misunderstanding.

Approach: story reviews before implementation; peer review of every change; IDEs and tools configured for conventions; static analysis and a security scan in the pipeline.

AI-assisted: AI code review that flags security issues and standards violations; requirements analysis that finds ambiguity, contradictions and gaps before coding; documentation review for outdated or inconsistent docs.

When: every commit and pipeline run. Failures block the commit or deployment.

UnitA section of code, in isolationFunctions, methods, modules, objects. Where coverage is easy to measure.

Finds: local data structure issues, boundary conditions, error-handling paths, variable issues, incorrect initialization, wrong expressions and arithmetic precedence.

Value: finds bugs early, when they're fastest to fix; testable code is usually well-decoupled and more maintainable; tests document the author's intent; refactoring becomes safe; it shows the implementation solved the problem.

Approach: TDD. Add a test for each defect found. Run in CI. Watch coverage as a trend, not a target (section 10).

AI-assisted: generate unit tests from code changes; find untested paths; flag flaky tests from run history. Generated tests should be checked against the requirement, not just the code: a test written from the code asserts what the code does, not what it should do.

Teams with low unit coverage find more defects at higher layers, where they take far more effort to find and fix.

IntegrationUnits and components, combinedIncluding contract tests, component accessibility and visual regression.

After unit testing, units are combined and tested for function, performance and reliability between them. You may need test doubles for complex data. If you stub or mock external APIs, also run contract tests against the real endpoints to verify the contract.

Finds: interface mismatches, bad sequencing, communication failures between components, incorrect assumptions.

Value: fast (no multiple systems to talk to); easy to maintain and debug (the problem is in the component you're testing, often down to the line or endpoint); repeatable, with no flaky external dependencies; scales, because components test independently; runs on developer machines before code is pushed.

Approach: write tests, not too many, mostly integration. Mock API responses. Test from the consumer's point of view. TDD, again. Manual contract reviews and user-perspective walk-throughs of integration points.

Examples: Testing Library, Mock Service Worker, Pact for consumer-driven contracts, supertest, WireMock, Karate.

AI-assisted: analyze contracts and usage to suggest tests and catch breaking changes; synthesize realistic, varied test data; flag unusual patterns in results and logs.

SystemThe application being built, end to endIts own workflows, UI or API, with test doubles at its boundaries.

System testing runs the workflow of the application being built from beginning to end, replicating real user scenarios. Keep it to a minimal set of critical business flows and push the rest down the stack. If architecture forces a lot of testing here, invest in stubbing external dependencies rather than relying on real data and long setup.

Finds: issues with other services, databases and applications; UI consistency; device or browser issues; incorrect assumptions; and, depending on lower-layer coverage, defects that should have been caught lower.

Approach:

  • Only automate critical business functionality here: the $$$ flows and the high-risk areas.
  • Document tests in BDD form; ideally the stories already are.
  • Automate golden paths; leave error and edge paths to integration and unit layers.
  • Test across devices and browsers; your top five by traffic is probably sufficient.
  • Optimize setup and teardown; create test data automatically and clean up after yourself.
  • Keep tests deterministic: fix or quarantine non-deterministic ones.
  • Keep tests discrete: each stands on its own, with setup, test and teardown inside it.
  • Add time-boxed exploratory sessions for each new feature.

Examples: Playwright, axe for accessibility, Lighthouse, Karate.

AI-assisted: visual regression; test healing when locators or APIs change; risk-based suggestions for exploratory testing; accessibility scanning; user-journey analysis from production data; test generation from stories; flaky-test management; clustering failures for root cause.

Use test doubles in PR branches and real dependencies after merge, as a limited subset to avoid data issues.

End to endThe whole business flow, across appsReal services, real data, no test doubles. Few of these.

E2E tests cross multiple applications and services, which makes them harder to keep stable when the underlying services change. That often means false positives and flakiness. Used as the main gate in an application's pipeline, they bring flakiness, failures and long test cycles. Same tools as system tests, wider scope, and the same rule: a minimal set of critical business flows.

System vs end to end, with an example. Say the app under test is a post-purchase page that needs a logged-in user with a completed order.

  • System test: simulate login with a cookie that the login app would normally set, and pass the order id as a query parameter to the page where the test starts. You skip the flows and applications you aren't testing. For APIs, string a few calls together to simulate the workflow.
  • E2E test: automate every step a user takes: sign in, shop, check out, pay, and finally reach the post-purchase page. For APIs, the workflow crosses multiple services.
LayerAutomated examplesAI-assisted examples
StaticLinters, type checkers, SASTAI code review, requirements and doc review
UnitJest, JUnit, pytest, MockitoTest generation, flaky detection, gap finding
IntegrationPact, MSW, WireMockContract analysis, test data synthesis
SystemPlaywright, axe, LighthouseTest healing, visual diffing, exploratory suggestions
End to endPlaywright, KarateUser-journey analysis, failure clustering
Dynamic
Static
Transparent box
Translucent box
Opaque box
Informal review
Inspection
Tech review
Walkthrough
Build time
Unit
Integration
Static analysis
Run time · functional
Contract
System
E2E
Visual
Exploratory
Production smoke tests
Run time · non-functional
Security
Performance
A11y
L10n
Usability

scroll the diagram →

Testing types and methods: static (reviews and static analysis) and dynamic, by how much of the inside you see (transparent, translucent or opaque box), when it runs (build time or run time), and whether it checks function or non-functional qualities.
Test data

The integrity of test data directly affects test results; compromise it and you get false results. A test data set should be realistic, valid and versatile, and the test strategy should cover how to provision, secure, reuse and maintain it.

Understand each data element along six dimensions: type (input or existing), value (specific or a class of values), time (anything that expires, like credentials, is often why stable tests suddenly fail), reuse (an account can be reused; an order you ship can't), volume (for load and performance), and source (which database, environment or feed).

Production data has all the naturally occurring complexity that synthetic data falls short of, but copying it is tedious, it drifts when it depends on many tables, it needs obfuscation for privacy and compliance, and it can't test new functionality. Limit it to a stable subset of tests. AI-synthesized data closes much of the realism gap without the privacy risk.

Automate data creation, prerequisites and cleanup to keep pace with CI/CD, and audit the data regularly so it doesn't go stale and produce false failures.

Accessibility

Accessibility (a11y) means making a product usable by everyone, with or without disabilities. About one in seven people has some form of disability, permanent or temporary. It's the right thing to do, it's better UX for everyone, it widens your audience, and in many countries it's the law.

Myths to bust:

  • "We don't have time." You don't if it's left to the end. Make it accessibility-first.
  • "It's the testers' job." It's everyone's: developers, designers, product, test.
  • "Automated checks cover it." Tools catch roughly 20–40% of issues. Passing scans don't mean accessible.
  • "It's hard." Start with a keyboard and no mouse, then a screen reader (VoiceOver is built into the Mac; NVDA on Windows), then axe, WAVE or Lighthouse.
  • "We're WCAG AA, so we're accessible." WCAG is a great guideline. Use it with real user research, and invite real users to test. There's no such thing as 100% accessible.

06

CI / CD / CT / CO

Continuous integration, delivery, testing and operations, across the six phases a change goes through.

CT · continuous testing, every phase
CI · continuous integration
Cd/CD · continuous delivery / deployment
CO · continuous operations
1Pre-coding
  • Story & AC review
  • Risk analysis
  • Test strategy, DoD
  • ambiguity check
The idea is created and approved; stories, documentation and reviews happen before coding starts. Asking questions early is also an act of testing. Bring the quality perspective into every engineering decision, alongside product and development: it helps everyone see the scope and the alternate and negative flows, which are where bugs live.
2Pre-commit
  • Static, unit, integration
  • TDD, pairing
  • Local exploratory
  • review, test gen
Development on the local machine before pushing: pairing, local review, and every test that can run locally.
3Pre-merge
  • All build-time layers
  • Deploy to test env
  • System tests, doubles
  • impact analysis
Code is pushed, CI runs, and a deployed artifact lands in the test environment. The test environment can be physical or ephemeral; it needs to be capable of allowing the tests to run.
4Post-merge
  • System, real deps
  • Contract, perf, a11y
  • Deployable artifact
  • failure triage
Reviewed and merged; the post-merge CI steps lead to a production-deployable artifact.
5Prod deploy
  • Smoke / synthetics
  • Flag off (dark)
  • Rollback on fail
  • anomaly detection
The artifact is deployed to production. With flags, deploy is not release: the code is in production, the feature is still off, and smoke and synthetic checks confirm the deploy itself.
6Go-live
  • Flag on, canary
  • SLOs, RUM
  • Ramp or roll back
  • journey analysis
The artifact is live and taking traffic, or the feature flag is enabled. Canary first, watch the SLOs, then ramp to everyone or roll back.
Go-live can mean a deploy taking traffic or a feature flag being turned on. Separating the two is what makes dark launching possible. Lines marked AI are where AI assistance pays off most in that phase.

Build time and run time

The pipeline splits in two at the deployed artifact: phases 1–3 test code, phases 4–6 test something running.

Build-time tests run during compilation, with no deployed artifact, so a developer can test the project's own logic quickly and in isolation. For UI apps: static, unit, integration (component). For services: static, unit, component and contract.

Run-time tests run against deployed artifacts. For UI apps: system, and end to end if required. For services: integration and system.

For E2E, deploying to a test environment is basically required. But I've also worked places where we could spin up an ephemeral full stack and run the tests without deploying. In a modern world that's actually preferable: ephemeral stacks with test data, run per pipeline. Enterprises with large data sets and many external integrations still need an E2E environment to deploy to. Those integration points and data sets may be too large, complicated or costly to spin up per pipeline.

The application under test (system under test) is the single application in development. Downstream services aren't part of it unless their code is in the same repository. Tests may exercise the dependencies, but they do

UI apps

Build time tests

Static
→
Unit
↓
Test doubles
→
Integration
↓
Test doubles

Run time tests

System
↓
Test doubles
db · Service
→
E2E
↓
Other experience layer application
db · Service
Services

Build time tests

Static
→
Unit
↓
Test doubles
→
Component
↓
Test doubles · in-memory db
or throwaway containers
→
Contract
↓
Consumer tests · provider verification

Run time tests

Integration
↓
Real db · queue · services
→
System
↓
Deployed service via its API (REST, GraphQL, gRPC)

scroll the diagram →

Services split integration in two: component tests run the service in isolation with test doubles, at build time; integration tests hit real dependencies once something is running (Clemson). Throwaway containers can now bring a real database into the build without deploying anything ("Getting Started with Testcontainers for Java"). Contract tests check that consumers and providers still agree, on both sides of the contract.
Build time (no deployed artifact / AUT)
Run time (requires deployed artifact / AUT)
End-to-end (E2E)
Static
Unit
Integration / Component
System (PR branch)
System (PR or Main)
Other application(s)
SPA(s)
Application under test (AUT)
↓
Test doubles
↓
Test doubles
↓
Test doubles
↓
Service (REST, GraphQL, gRPC) → db
↓
Service (REST, GraphQL, gRPC) → db

scroll the diagram →

Cross section of the application under test: each test layer takes its own slice of the AUT. Build-time layers need no deployed artifact. At run time, system tests use test doubles on PR branches and real dependencies on PR or main; end-to-end tests run the AUT together with the other applications it works with.
n't target them.

Continuous integration

"Continuous Integration does not get rid of bugs, but it does make them dramatically easier to find and remove."

Martin Fowler

Commit daily, if not every few hours. The point is that nothing new breaks existing functionality, and that testing doesn't pile up at the end. When a test fails, we know which change caused it, and that person can fix it quickly. Keep tasks and branches as small as possible; it makes the code easier to write and the review easier to do. Before a review, the new code should have tests and they should pass. Code review is not the primary bug-finding instrument; a robust set of unit, functional and integration tests is.

What continuous integration is, and is not

CI is

  • Everyone merges small changes to main at least daily. Branches live hours, not weeks.
  • Every merge triggers a build and the full automated suite, automatically. Nobody kicks it off.
  • Tests are fast enough to run on every change: minutes, not hours.
  • A red main is the team's top priority, fixed or reverted in minutes.
  • Main is always deployable.

CI is not

  • Owning a CI server. The tool is not the practice.
  • Long-lived feature branches merged at the end of a sprint.
  • Merging, then someone has to kick off a build.
  • Running the full suite nightly, or only before a release.
  • A broken build that sits overnight while people keep merging.

If someone has to start the build after a merge, you have a build server, not continuous integration. Plenty of teams work that way, and it's a fine place to start. Call it what it is, and know what's missing: the feedback that tells you within minutes which change broke what, while the person who made it still has it in their head. The path from there is small steps: trigger the build on merge, then run the fast tests on every push, then shrink branches until they last a day.

Continuous delivery and continuous deployment

CD is two different things, and the difference matters. I write it Cd/CD.

Cd · continuous delivery

  • Every change that passes the pipeline is deployable: it could go to production at any time.
  • Going to production is a decision: a person, or a business calendar, pushes the button.
  • Usually no feature flags, so deploying a change also releases it. That's why a person decides.

CD · continuous deployment

  • Every change that passes the pipeline is deployed to production automatically.
  • No human gate between merge and production. The pipeline is the gate.
  • Needs flags, canaries, SLOs and automatic rollback, so deploying doesn't have to mean releasing.

Continuous deployment is not delivery with the approval removed. Take away the human gate without adding flags, canaries and automatic rollback, and you've only taken away a check. Earn it: get to continuous delivery first, measure your change failure rate and time to restore, and remove the button when the numbers say the pipeline catches what the person used to.

CI works only when continuous delivery and continuous testing are practiced too. We are continuously delivering software to somebody, somewhere: to production or to lower environments. The best organizations release many times a day. Small, frequent releases deliver value without delays and keep each change small enough to understand and undo. Releases are also a communication problem, not only a technical one: tell people what shipped and what's still open.

Continuous testing

Whenever a change is made, big or small, make sure it doesn't break existing code or functionality. Unit and API tests cover the code impact; a regression subset covers the major flows. Releasing without regression is heavily risky. Cloud browser and device platforms make the compatibility matrix practical. Continuous testing does not stop at pre-production (section 07).

CT · before production

  • Every change, big or small, is checked against existing code and functionality.
  • Unit and API tests cover the code impact.
  • A regression subset covers the major flows.
  • Cloud browser and device platforms cover the compatibility matrix.

CT · in production

  • Continuous testing doesn't stop at pre-production.
  • Synthetics, canaries and monitors keep checking what's live (section 07).

Continuous operations

The CO is what makes the other three safe to do fast: running what's live and watching it, all the time. Deploy, release, monitor, roll back, learn, repeat. Observability is the part that sees. It's a property of the system; monitoring is actively watching it. Logs, metrics, traces and alerts are the pillars. Section 07 covers why this is testing too.

CO · run it

  • Running what's live, all the time.
  • Deploy, release, monitor, roll back, learn, repeat.

CO · see it

  • Observability is the part that sees: a property of the system.
  • Monitoring is actively watching it.
  • Logs, metrics, traces and alerts are the pillars.

Shift left and shift right

Shift left

  • Testing starts in the envisioning phase.
  • Test planning and strategy design start before code.
  • Teams drive the discussion on what testing is needed, identify acceptance criteria, and outline high-level test cases.
  • Test activities are part of story estimation.

Shift right

  • Testing continues in production, where complexity exists in its highest form.
  • Dogfooding, synthetics, canaries, chaos experiments and incident learning.

Both directions, at once.

Shrink the cost

After deploy

07

After the deploy updated

Sufficiently advanced monitoring is indistinguishable from testing.

Ed Keyes, Google Test Automation Conference, 2007 · after Arthur C. Clarke
Test in CIMonitor in production
InputFixtures, test data, a buildSynthetic checks and real traffic
ExpectedAn assertionAn SLO: p99 checkout < 800 ms
CheckThe test runnerThe alert rule
ReportA red buildA page, and an automatic rollback
Who pays: a red build
Who pays: some real users

A test is a known input, an expected result, a check, and a report. A synthetic check that logs in every minute and places a test order is that same thing, run against production instead of a build. An SLO alert is an assertion: "p99 checkout latency under 800 ms" is an expected result. Real user monitoring is exploratory testing done by your customers, at a scale no team can match. You just have to be able to see what they found.

The difference is who pays when it fails. A failing test in CI costs a red build. A failing check in production costs some users a bad experience. Monitoring is testing where the test data is real people. That's an acceptable trade when reach is small and recovery is fast (section 03). It is not acceptable for the one-way doors.

What makes monitoring count as testing

  • It has an oracle. SLIs with SLOs (defined below), not dashboards someone might look at. If nothing asserts, nothing is tested.
  • It's fast. Time to detect in minutes, not when a customer calls support.
  • It's tied to the change. You can tell which deploy or which flag caused the movement.
  • It acts. An SLO breach during a canary rolls back without waiting for a human.
  • It runs without traffic. Synthetic checks on critical flows run at 3 a.m. too, when no real user would find the break.
  • It's part of Done. Monitors and alerts are added or adapted with the story, not after the incident.

SLI, SLO, SLA: how they fit together

"Is it working?" needs a number, a target and a promise. They're three different things, owned by different people, and they nest.

SLI

Service level indicator

What you measure. A ratio of good events to all events, from the user's side.

% of checkout requests that return 2xx in under 800 ms

Owner: engineering

SLO

Service level objective

The target for that indicator over a window. Internal. Stricter than anything promised outside.

99.9% over a rolling 30 days

Owner: the team, with product

SLA

Service level agreement

The promise to a customer or partner, with consequences: credits, penalties, a contract. Looser than the SLO.

99.5% monthly, or service credits

Owner: the business, legal

One indicator, three linesillustration · not data
SLA broken · you pay SLO missed · fix reliability first error budget → SLA 99.5% SLO 99.9% SLI now 99.95% 99.0%99.25%99.75%100% The SLO sits inside the SLA on purpose: when you miss your own target, you still have room before you owe anyone.
Error budget = 100% − SLO · 43 minutes a month at 99.9%
25% left · reliability work before features 0% · freeze risky changes BUDGET REMAINING bad deploy · 16 of 43 minutes gone dependency blip day 0day 15day 30

scroll the charts →

The SLI is measured continuously. The SLO turns it into a pass/fail assertion, which is what makes monitoring a test. The gap between 100% and the SLO is the error budget: the amount of failure the team has agreed is acceptable. While budget is left, ship. When it runs low, the same rule that let you move fast tells you to slow down. That is section 03's "how much is enough," written as a number.

Three things go wrong most often. SLIs that measure the server instead of the user (CPU is not an SLI). SLOs set at 100%, which leaves no budget and makes every change a violation. And SLAs set equal to the SLO, so the first internal miss is already a contract breach. Measure what the user feels, set the target below perfect on purpose, and keep the promise looser than the target.

Three questions every team should be able to answer: How do we know our app is working right now? What monitors do we have in place? Which critical flows have synthetics?

The release toolbox

Deploy is not release. Keep the words separate, because they carry different risk.

Deploy

Pushing code artifacts to production with the flags off.

Nobody sees anything new. Smoke and synthetic checks confirm the deploy itself. Do it continuously, any time of day.

Risk: the deploy

Release

Knowingly turning a flag on, for a cohort, a percentage, or everyone.

A two-way door. If it misbehaves, the flag goes off in seconds, no deploy needed. Canary it, watch the SLOs, ramp.

Risk: the feature, reversible

Release with no switch

Something that goes live the moment it ships, with no way to turn it off.

Schema migrations, data backfills, emails sent, money moved, a partner integration cut over. A one-way door: deploy and release are the same act. Section 03's old bar applies.

Risk: all of it, at once

"You should deploy your code continuously throughout the day or week. But you should wrap any large, user-visible behavior changes behind a feature flag, so you can release that code by flipping a flag."

Charity Majors · Deploys Are the Wrong Way to Change User Experience

"Feature flags allow you to separate code deployments from feature releases. As a result, developers can deploy to production whenever they want, and the business can release when it's ready."

LaunchDarkly · Why decouple deployments from releases

A flag turns most releases into two-way doors, which is why they can move fast. The ones without a switch are the one-way doors from section 03, and they get the slow, careful treatment. The mistake in both directions is the same: treating a one-way door like a flag flip, or treating every flag flip like a one-way door.

I've shipped under a lot of release models. At one end, sign-off was the pipeline itself: the tests passed and the change went to production. At the other, every release needs a recorded sign-off before it deploys and a verification sign-off after, with plenty of variations in between. All of them can deliver quality. The heavier models cost more per release, and that cost falls fastest when the evidence behind each sign-off comes from tooling — test results, monitors, dashboards — instead of people re-checking by hand. Modern tooling doesn't remove the sign-off; it makes the sign-off faster and better informed.

Canary releasesRun the new version in production with a slice of real traffic and a safe rollback strategy. It tests capacity, and captures how the new version affects production before everyone gets it.

A/B testingDiligent use of A/B tests and flags gives the team flexibility, and gauges feature readiness from the customer's side: how it behaves in the real world, not only whether it works.

RollbackOne action, rehearsed, measured. If rollback is a runbook nobody has run, it isn't a rollback. Database changes use expand/contract so the previous version still works against the new schema; otherwise code rollback is a fiction.

Testing in production and dogfoodingThe approach differs from lower environments. Testing in production is more of a manual exercise, with homework done first on what to test and what not to. It finds problems before customers do, and builds empathy with them.

Controlled chaos experimentsChaos engineering finds weaknesses conventional QA can't, from known knowns to unknown unknowns:

  1. Define the current steady state with a baseline. Start small, such as network utilization.
  2. Define optimal conditions: a normal day, an easy day, and a very hard day. The last is the stress test.
  3. Form a hypothesis about where and how the system will break.
  4. Run a real-world event, for example taking down a firewall that cuts connectivity to an ISP.
  5. Validate the hypothesis. Watch utilization and throughput, see where it fell over, and look for anything unexpected. Stabilize, document, remediate.

Incident learningDespite our best efforts, incidents and outages happen. Analyze them, do a real root cause analysis, and fold the learning (functional, performance, security, whatever it was) back into the team's practices and the product. Track the corrective actions. The incident becomes a test, a monitor, or a line in the Definition of Done.

ObservabilityNothing beats an environment that can tell you its own health. Collect the right logs, track metrics, detect anything that could affect the user experience, and alert on what matters most. When something goes wrong, tracing shows how a user got there: the functions, the parameters, how deep they got, and their whole journey through the stack. Dashboards built from that data show errors, usage and the success rate of new functionality.

Who checks

People, then AI

08

People still test

Automation can't judge whether a flow makes sense. It can't test usability. Somebody has to write each automated flow and tell the machine what to do. So what's the deal with manual testing?

Back in 2000, automated tools pretty much sucked and cost $20k a seat or more; manual testing was "the way." In 2008 manual was still the main way, with a small set of automated tests augmenting. Around 2010 the real shift toward automation began, and by 2015 automated testing was heavily used, understood and trusted. Now there are very few manual testers around, and a lot of that skill set is gone. Teams need to deliver fast and automation is key to that, but there is still room for manual practice: exploratory work on edge cases, boundaries, error handling and usability. I'm not saying a team needs a dedicated person doing this full time. The team itself needs to be capable of effective manual testing in those areas, and product should look at the app from the customer's view too.

Product, quality, engineering: the three together

Most of what works in agile and modern delivery comes from the three working together, not in sequence. Each has a role. Product defines the thing; quality and engineering ask questions to help refine it. Engineering builds it, quality tests it, and product accepts it, and helps test it, as does engineering. That's the shape whether you call it the Three Amigos, a triad, or just a good team.

DefineRefineBuildTestAcceptRun & learn
ProductDefines the thing: the problem, the outcome, acceptance criteria.Answers questions, trims scope, sharpens criteria.Stays reachable; reviews early builds.Helps test it from the customer’s view.Accepts it, or doesn’t. Decides when it releases.Reads outcomes and customer feedback.
QualityAsks questions: risks, edge cases, testability.Refines criteria; risk analysis, test strategy, Definition of Done. Estimates time to test.Pairs; builds test data and automation alongside the code.Tests it: exploratory, automated, non-functional. Reports what it found.Brings the evidence the acceptance decision rests on.Owns the quality system: monitors, escape analysis, metrics. Coaches the other two.
EngineeringAsks questions: feasibility, design, cost.Designs; estimates with testing included.Builds it, TDD, unit and integration tests.Helps test; fixes what testing finds.Demos it; makes it shippable.Runs it: on-call, rollback, fixes.

scroll the table →

Highlighted cells are where each role leads. Seems like quality gets off light, huh? Read across its row. Product leads at the two ends, engineering leads in the middle, and quality carries load in every column without ever handing off. Quality isn't a stage between build and accept; it runs the length of the line.

Know how to use what you own

A product owner who can't run their own product, and perform and verify most of their own requirements, doesn't understand the product well enough to own it. Same goes for engineering: nobody should be so specialized they can't sign in, place an order, or walk the main flow of the thing they build. There are exceptions to every rule, but they should be rare and deliberate, not the default.

Here's how that works in practice.

Developer 1

Developer 1 grabs a ticket. They code furiously to do the best they can. They use TDD to write unit tests, they create or expand the integration tests, and heck, they even write a system test that exercises the new functionality. AWESOME. Along the way they open the app to check navigation for that system test. Guess what: that's manual testing. Then, to be super thorough, they open the app and try some field validation: too many characters, numbers in a text field, navigating away and back. There are a lot of heuristics for testing new code. All tests pass, so they open a PR.

The PR build runs the new test and it fails. What the...? Locally they were using stubbed data; now it's real (test) data, and there's a mismatch. More manual effort: digging through logs, using the browser dev tools. Found it. Fix the code, rerun the tests, update the stubs, re-test the area by hand, paying attention to similar spots. Push. Green across the board.

Developer 2

During review, Developer 2 notices something that might be a problem, opens the app in test, and tries what they think will break. Bam. The new code has the same issue seen nine months ago in a similar function that needed hardening against certain data. More manual testing. They point Developer 1 at the old fix; the change is made, tests updated, a new stub and test added to prove it, more manual validation. Push another revision.

Product

At demo, product sees what was built, and something seems off. It works, but the new field's placement makes sense inside the component and not on the page; users could miss it until they submit and get an error. Product clicks around, pins down the usability issue, requests a change, then reopens the app and confirms the flow is better. All checks pass, merge to main. Feature in production about 45 minutes later.

Developer 1 did manual verification plus boundary and heuristic exploration, missed a defect, and fixed it quickly. Developer 2 reviewed the code and manually checked the area they expected trouble in, and found a real issue. Product sensed a problem they couldn't name and used manual exploration to find a usability issue. This is the new world of manual testing: techniques and heuristics for getting the result you need in the limited time you have.

Rewrite that story today and an AI agent is in it: drafting the tests, reviewing the PR, maybe flagging the nine-month-old pattern. It doesn't replace any of the three people. It gives each of them more to check.

Exploratory testing and dojos

As features grow, you test more, and every fixed bug needs to stay fixed. Automation makes that possible. Manual testing is still worth doing, focused on exploration, where the goal is to uncover non-obvious errors. Let computers do what they're good at, repetition, and reserve people for thinking and the most imaginative scenarios.

  • Time-box a session to at most two hours, with a clear scope and a short, simple charter.
  • Run a dojo for significant new capability, with all impacted teams and stakeholders.
  • Do it after development testing is finished, when the feature needs an objective look.
  • Aim at the unknown knowns (issues you aren't aware of but would understand) and the unknown unknowns.
  • Buddy or pair testing: a developer has a buddy test the code before delivering it, for direct, immediate feedback.

AI can draft charters and point at risky areas. People decide what's worth an afternoon.

Code quality and working agreements

Good code does what it should, follows a consistent style, is easy to understand, is documented, and can be tested. Keep methods small and reusable, limit arguments, handle exceptions and defaults, keep PRs small, update docs and changelogs, and cover existing behavior with tests before refactoring. Much of this belongs in static checks. Measure it with defect metrics and complexity (cyclomatic complexity is decisions + 1; high is hard to test and error-prone).

Teams should agree how they work on quality: TDD, BDD or both; pairing; who writes and runs which tests; what's in the DoD; which tools, metrics and standards. These ground rules evolve, usually out of retrospectives, and should be refactored once in a while.

09

AI in the loop updated

AI is augmenting both manual and automated testing. It speeds up test creation, improves coverage, detects anomalies, and helps with exploratory work.

Manual testing: people run test cases or explore the application to find what scripts miss. Automated testing: tools and scripts check functionality, usually in the pipeline. AI-assisted testing: machine learning, language models and agents that generate tests, prioritize them, analyze results, and find patterns humans or scripts might miss.

Using AI to test

AI-assisted testing can accelerate test creation and maintenance, by generating or updating tests as code and UI change. It can improve defect detection through anomaly detection and pattern recognition. It can enhance exploratory testing by suggesting the areas most likely to hide defects. And it can optimize coverage by finding redundant or missing tests. Here is where each use pays off, and how much to trust it.

check after spot-check the output with sampling and metrics gate before a person approves before it counts

Static

  • AI-powered code reviewSuggest code improvements, flag security vulnerabilities and enforce coding standards (GitHub Copilot, DeepCode).check after
  • Requirements analysisScan requirement documents for ambiguities, inconsistencies or missing information.check after
  • Documentation reviewCheck for outdated or inconsistent documentation and suggest updates.check after

Unit

  • Unit test generationGenerate unit tests by analyzing code changes and usage patterns (GitHub Copilot).gate before
  • Coverage optimizationIdentify untested code paths and recommend or generate additional tests.check after
  • Flaky test detectionAnalyze execution history to flag flaky or unreliable tests.check after

Integration

  • Contract analysisAnalyze API contracts and usage to suggest integration tests and detect breaking changes.check after
  • Test data synthesisGenerate realistic, diverse test data for integration scenarios.check after
  • Anomaly detectionWatch integration results and logs for unusual patterns that point to deeper issues.check after

System & E2E

  • Visual regressionCompare UI screenshots across builds to detect subtle visual changes (Applitools).gate before
  • Test healingUpdate test scripts when UI locators or APIs change.gate before
  • Test creationGenerate test scripts from user stories, requirements or recorded user interactions.gate before
  • Accessibility scanningIdentify accessibility issues in UI pages and suggest remediations.check after
  • User journey analysisUse production usage data to suggest scenarios that reflect real user behavior.check after
  • Flaky test managementDetect flaky tests and retry them, but report every retry: count it, track the trend, and quarantine repeat offenders for review.check after
  • Root cause analysisCluster and analyze failures to find systemic issues quickly.check after

Pipeline

  • Test impact analysisSelect and prioritize the tests relevant to each build.check after
  • Test prioritizationRun critical or failure-prone tests first.check after
  • Environment setupAuto-configure test environments based on historical needs.check after
  • Adversarial reviewA second, different model challenges AI-generated code, tests and reports before they merge; disagreements go to a person.gate before

Exploratory & upkeep

  • Risk-area suggestionsPoint exploratory testing at high-risk or untested areas.check after
  • Traceability and gapsMap requirements to tests and find the gaps.check after
  • Test maintenanceRecommend obsolete or redundant tests for removal.gate before

Production

  • Performance regressionDetect performance regressions and predict scalability problems.check after
  • Log and result anomaliesDetect anomalies in logs and test results.check after
The trust level follows the two rules in section 02 and the doors in section 03: anything that changes what a test asserts, adds or removes tests, or sets a visual baseline gets a person's approval first. Everything else is checked after the fact. Tools named are examples (GitHub; Snyk; Applitools).

When AI writes the code

Code got cheap. Being wrong didn'tAI makes writing code fast, so there is more change, more often. Verification becomes the bottleneck, and the tester's job gets bigger, not smaller.

The output is a claimRule one applies to agents the same as to people. "Done, all tests pass" gets checked: which tests, what they asserted, what is actually served.

Don't let the same model grade its own homeworkTests generated from the code assert what the code does. Tests should come from the requirement or the acceptance criteria, which is one more reason to write those well. BDD-style acceptance criteria turn out to be excellent prompts.

Checking the AI

Use an adversarial model to check model outputPoint a second model at the first one's output with one job: find what's wrong. Use a different model, ideally from a different vendor, because model judges tend to favor answers like their own (Zheng et al.). Prompt it to attack, not to agree: missing cases, wrong assertions, hallucinated APIs, security holes. Where the two disagree, a person decides. And measure the checker like any other test: what it catches, what it misses, how often it cries wolf.

Healing needs a gateA healed test that passes against the wrong element is worse than a failing test, because it hides the failure. Heal the locator, then prove the new one finds the same element, and keep a person in the loop for anything that changes what is asserted. In my own healing work the number I watch is "wrong heals kept," and it has to stay at zero. I built this into my open-source Python and TypeScript Playwright frameworks.

Measure the AIWhat did it catch, what did it miss, how often was it wrong, and what did it cost? If you can't answer that, you don't know whether it helps (rule two).

The warning that hasn't changed

Relying only on AI-assisted approaches or automation creates a false sense of security. These tools may not catch issues that only emerge through real user interaction or unexpected workflows. Combine manual, automated and AI-assisted testing deliberately, and the team gets broader coverage, finds more subtle issues, and delivers a better product.

How you know

Measuring it

10

Measuring it

A limited set of useful metrics, defined for balance, automated, and interpreted the same way by everyone.

Define metrics from specific objectives for the project, process or product. Define them for balance, because a single metric can give a misleading picture. Agree on their interpretation with all stakeholders before you discuss the numbers. Resist defining too many. Automate collection and reporting so measurement doesn't eat the time it's meant to save. And watch for variation that reflects something other than what you agreed it meant.

Delivery: the DORA metrics

DORA is the widely adopted standard for delivery performance, and several of its measures are direct measures of automation and quality.

MetricWhat it isWhat it says about quality
Deployment frequencyHow often you successfully release to productionNeeds a robust, reliable pipeline and tests
Lead time for changesCommit to productionSlow tests and manual gates show up here
Change failure rate% of deployments causing a failure in productionReflects testing, along with change size, design and release practice
Time to restoreFailure to recoveryThe "time" lever from section 03

Quality and testing

Product risks: % of risks fully covered by passing tests; % with some or all tests failing; % not yet fully tested; coverage by risk category; risks found after the initial analysis.

Defects: found vs. fixed over time; mean time between failures; breakdown by root cause, phase introduced/detected/removed, priority, rejected or duplicate, leaked to production, and defect age.

Coverage: requirements and design, risk, environment and configuration, and code.

Operations: MTTD (average time to detect) and MTTR (detection plus recovery), rollbacks, build success rate, test success rate, flaky rate.

Confidence: often reported subjectively. Measure it through surveys, or use coverage as a surrogate, and say which you did.

Business: map engineering metrics to business ones. A shorter time to restore means better customer satisfaction. Change failure rate, defect escape rate, usage, churn, conversion after a release, repeat purchase.

AI: catches, misses, false positives, wrong heals, and cost per useful finding.

A scorecard, not a target

A quality scorecard measures software against KPIs and your quality policy, and shows pipeline strengths and weaknesses: commits, production deploys, builds, lead time, CI/CD adoption, change failure rate, rollbacks, MTTD, MTTR, build and test success rates. A balanced scorecard connects the dots between the work, the measures, and the goals. Read it to learn. The moment one number becomes the goal, it gets gamed, and you're measuring the gaming.

Part two · The practices

11

Definition of Done

Before we cut a single line of code, we need to decide what done means for our product.

It will be defined very differently if you're building firmware for pacemakers or an e-commerce portal. Without a Definition of Done we don't know what working software means, and without working software we can't have predictable delivery.

Characteristics

  • A short, measurable checklist. Things whose outcome can be tested, preferably automatically.
  • Mirrors shippable. At review, the product owner should be able to say "That's awesome, let's ship it."
  • No further work. Anything more needed to ship means you weren't done, and it eats next iteration's capacity. Ideally delivery is fully automated.

Three components

Business or functional requirements: the user stories and their acceptance criteria. Non-functional requirements: performance, accessibility, security, usability, localization, availability, compliance. Putting them in the DoD bakes them in at the story level. Quality standards: how we build the product right.

Examples to put on a DoD

  • Static analysis passes with no critical errors. Starting from legacy? Cap the count ("no more than 50") and lower it over time.
  • Code coverage stays the same or goes up. A fixed coverage number like 90% is a red herring and tells you nothing about code quality; an adverse change in coverage tells you something.
  • Agreed engineering standards met, automated where possible.
  • Acceptance criteria pass, and acceptance tests are automated. If you think something will break, have a test for it.
  • Security checks pass. You won't find every issue, but don't ship the ones we already know about.
  • Agreed UX, accessibility and architecture guidelines met.
  • PR reviewed by at least one other person, including AI-generated code.
  • No known bug caused by the story.
  • Validated in pre-production.
  • Monitoring and alerts added or adapted as part of the story.
  • New: risky changes ship behind a flag; the rollback path is known and has been exercised; a synthetic check covers any new critical flow.

Growing it

The DoD doesn't magically appear, and the software doesn't magically comply. Seed it in a workshop with the whole team and the expertise you need (code, test, security, UX, architecture), then grow it. Reflect on it every retrospective, and add to it mid-sprint if something is missing. Check whether the estimates held, testing included. If a problem means you don't have working software, stop and fix it before adding features, then raise the DoD so future increments meet it. If it's smaller, put the work in the backlog, resolve it, and pin the outcome by adding it to the DoD. The next increment can only reach the quality bar of all those before it.

12

Defects, risk, debt

Defects are inevitable. How many escape to production, and how long they stay, can be controlled.

Two ways to get there

Defect management counts and manages defects, usually by severity. A defect is any failure to address end-user requirements: missed or misunderstood requirements, errors in design, logic, data relationships, timing, validity checks, and code. This is generally a reactive approach.

Software quality attributes assesses conformance with a quality model such as ISO/IEC 25010 (section 14), and guides testing of both functional and non-functional attributes. This is generally a proactive approach. A good team does both.

Defect management

Detect, triage, resolve, analyze. Capture the right data with each defect so the person fixing it, possibly on another team, can make an informed decision. Triage often; an unprioritized defect is a risk lying unattended. Give each priority an SLA you can actually meet, and track the ones past it.

PriorityDefinitionFix SLA
P1 BlockerService unavailable, memory leaks, unreliable data, performance degradationImmediate / 1 dayMitigate in minutes: roll back or flag off. The fix can follow.
P2 CriticalCritical functionality broken, no workaround14 days
P3 NormalNot fully working, workaround available30 days
P4 LowCosmetic issues, typos60 days
P5 TrivialDoesn't affect functionality90 days

SLAs can change at the team's discretion. Then analyze the data: defect types, resolution trends, backlog, unprioritized defects. Share the lessons. Have a prevention culture that drives defects toward zero, and feed what you learn back into review, development and test practice.

Risk

Risk is the possibility of a negative or undesirable outcome. Product (quality) risks hit the product: wrong calculations in reports, slow responses, confusing screens. Project (planning) risks hit delivery: environment and tool readiness, staff availability and skills, missing standards.

Risk can be assessed quantitatively (likelihood × impact) when you have numbers, but usually only qualitatively: very high to very low. Once a risk is identified there are four options:

  1. Mitigate it with preventive measures that reduce likelihood or impact.
  2. Make contingency plans that reduce the impact if it happens, each with a trigger and an owner.
  3. Transfer it to another party.
  4. Accept it.

Feature flags, canaries and rollback are contingency plans with automatic triggers. That's why they change how much pre-release mitigation you need.

In a mature organization, risk management happens throughout the lifecycle and at every level, not just in testing. Important risks are addressed earlier and at lower test levels: if performance is a key risk, performance tests run during unit and integration testing, not only in system test. Mature teams identify the sources of risk, use root cause analysis on the defects that do happen, and improve the process so they don't happen again. Testing takes part in, and influences, the program-wide risk analysis.

Assumptions are things you presume will be in place but can't guarantee. Reassess them regularly. Dependencies are things that must start or finish for you to progress, internal or external. Ask who you depend on and who depends on you, and manage both.

Technical debt

Technical debt is not a defect, and it doesn't go hand in hand with quality. It comes from business pressure, parallel development, missing skills, missing documentation, missing ownership, and decisions that made sense once but now slow you down. Record it, triage it, and promote it into the backlog like any other work.

  • Implementation: duplication, static rule violations, code smells.
  • Design and architecture: design smells and rule violations.
  • Test: missing tests, low coverage, fragile automation, poor test design, no non-functional tests.
  • Infrastructure: tangled dependencies, long builds, manual steps.
  • Documentation: missing, poor or outdated docs.

13

Then and now updated

Before AI tooling and before flags and canaries were normal, I published a practice radar for testing. Here it is, with where I'd put each item today.

Adopt we should be doing this when appropriate, and measuring it. Trial worth pursuing; build the capability. Assess explore how it affects your project. Hold proceed with caution.

Tap a blip

Then → now

Dashed ghosts show where a practice sat on the original radar; the arrow is how far it moved. Pulsing rings are practices that didn't exist on it.

    PracticeThenNowWhy it moved
    TDDAdoptAdoptTests first also gives AI-written code a spec to meet.
    BDDTrialAdoptGiven/When/Then acceptance criteria are the best input for generated tests.
    Shift-leftAdoptAdoptUnchanged.
    Shift-rightTrialAdoptFlags, canaries and synthetics made production testing routine and safe.
    Continuous testingAdoptAdoptNow runs past the deploy.
    Risk-based testingAdopt programs
    Assess others
    AdoptIt's how you decide what "enough" is for each change.
    Contract testingTrialAdoptMore services and generated clients mean more contracts to break.
    Visual testsTrialTrialAI diffing reduced the noise; still tune per app.
    Automated E2E as pipeline gateHoldHoldStill flaky and slow; a few critical flows only.
    Production smoke testsAssessAdoptContinuous synthetics on critical flows, with rollback on failure.
    Chaos testingTrialTrialWorth it once observability is solid.
    Exploratory testingAdoptAdoptMore valuable as automation and AI absorb the repetitive checks.
    Confidence engineering—AssessEmerging term for owning the justified-confidence-to-ship decision when AI produces much of the code and evidence (Arbon). Worth watching.
    Fixed unit coverage targetAdopt 90%HoldGenerated tests make the number easy to hit and meaningless. Watch the trend.
    Feature flags, dark launch—AdoptSeparates deploy from release; release becomes reversible.
    Automated rollback—AdoptThe "time" lever. Rehearse it.
    AI failure triage—AdoptLow risk, high payoff: clustering and root cause suggestions.
    AI test healing—TrialOnly with a verification gate. Wrong heals kept must be zero.
    AI test generation—TrialFrom requirements, reviewed by a person; not from the code alone.
    Autonomous AI test agents—AssessPromising for exploration; treat findings as leads to verify.

    14

    The foundations

    Show the foundations: ISO 25010, 5055, 29119, ISO 9000, QA vs. QC, the planning hierarchy, TMMi, Modern Testing Principles

    None of the speed above replaces the fundamentals. These are the standards and models underneath how I think about quality.

    ISO/IEC 25010: eight product quality characteristics

    Note: ISO has withdrawn ISO/IEC 25010:2011, the edition described here. Its replacement, ISO/IEC 25010:2023, uses nine characteristics. We still need to assess the replacement; the 2011 model is kept here for reference.

    The SQuaRE quality model. It superseded ISO 9126 and added security and compatibility. It gives consistent terms for specifying, measuring and evaluating quality, and a checklist to compare requirements against for completeness. There is also a quality-in-use model: effectiveness, efficiency, satisfaction, freedom from risk, and context coverage.

    Functional suitabilitycompleteness, correctness, appropriateness
    Reliabilitymaturity, availability, fault tolerance, recoverability
    Performance efficiencytime behavior, resources, capacity
    Usabilitylearnability, operability, error protection, accessibility
    Securityconfidentiality, integrity, non-repudiation, accountability, authenticity
    Compatibilityco-existence, interoperability
    Maintainabilitymodularity, reusability, analysability, modifiability, testability
    Portabilityadaptability, installability, replaceability

    ISO/IEC 5055: measuring the internal structure

    ISO 5055:2021 measures source code on four business-critical factors: security, reliability, performance efficiency and maintainability. It counts weaknesses at the unit, technology and system level: hard-coded credentials, SQL injection, unhandled exceptions, unbounded resources, expensive work in loops, high cyclomatic complexity, tightly coupled modules. These are the factors that decide how trustworthy and resilient a system is, and many of them are exactly what static analysis and AI code review should catch.

    ISO/IEC/IEEE 29119 and ISO 9000

    Note: ISO has withdrawn ISO 9000:2015. A 2026 edition is listed as its replacement. We still need to assess it; the 2015 principles are kept here for reference.

    29119 (at ISO and IEEE) is the software testing standard: concepts, processes, documentation and techniques. ISO 9000:2015 gives seven quality management principles: customer focus, leadership, engagement of people, process approach, improvement, evidence-based decision making, and relationship management. I didn't recommend aligning a delivery organization to an ISO standard; the overhead would need dedicated QA staff to be practical. They're the vocabulary and the checklist, not the process.

    Quality assurance vs. quality control

    Quality assurance is preventive and works on the process: process definition, training, audits, tool selection. Quality control is corrective and works on the product: reviews, testing, inspections. Testers don't assure quality. We can't. We don't control the schedule, the budget, the staffing, the scope, or the development model (Bolton).

    The planning hierarchy

    DocumentLevelPurposeReviewed
    Test policyCompanyWhat testing means here: objectives, standards, terms, tools, success measures, how to improveVery rarely
    Quality management planProjectQuality objectives, deliverables, standards, roles, toolsRarely
    Test strategyProductApproach aligned to business goals: scope, budget, time, standards. A living document.Rarely
    Test planRelease / sprintItems, approach, pass/fail criteria, schedule, risks, responsibilitiesRegularly
    Test caseFeatureConditions, steps, data, expected and actual resultConstantly

    Testing maturity (TMMi)

    LEVEL 1InitialNo formal, documented testing. Testing is ad hoc after coding, and testing and debugging are the same thing.
    LEVEL 2ManagedTesting is separate from debugging. Policies and goals are set; basic techniques are used.
    LEVEL 3DefinedTesting is integrated into development and documented in standards, procedures and materials.
    LEVEL 4MeasuredTesting is measured and managed at the organizational level.
    LEVEL 5OptimizedData from testing is used to prevent defects and improve the process.

    Modern Testing Principles

    Alan Page's seven principles are the foundation of the whole-team quality approach I've worked toward:

    1. Our priority is improving the business.
    2. We accelerate the team, and use models like Lean Thinking and the Theory of Constraints to identify, prioritize and mitigate bottlenecks.
    3. We are a force for continuous improvement, helping the team adapt and optimize to succeed, rather than providing a safety net to catch failures.
    4. We care deeply about the quality culture of our team, and we coach, lead and nurture it toward maturity.
    5. We believe the customer is the only one capable of judging and evaluating the quality of our product.
    6. We use data extensively to understand customer usage, and close the gaps between product hypotheses and business impact.
    7. We expand testing abilities and knowhow across the team, understanding this may reduce or eliminate the need for a dedicated testing specialist.

    Speed should never be the end goal. Speed is a long-term side effect of producing code with the highest possible internal quality.

    Works Cited