Project Management Leadership with AIExecution, control, risk and quality · Lesson 11 of 21

Building quality in

Article · 13 min · 9 min lecture

Video lecture

Building quality in

10 chapters · about 9 min · full transcript

Coming soon

Chapter 1 of 10

Quality means fitness for purpose

  • Planning, assurance and control
  • Prevention over inspection
  • Definition of Done and root cause analysis

The narrated lecture is in production

Every chapter is scripted and ready. Browse the chapters and read the full transcript now — the video will appear here when it’s published.

Chapters

Quality means fitness for purpose

Quality is the degree to which deliverables meet requirements and are fit for their intended use. It is not gold-plating (adding features nobody asked for). The cost of poor quality, including rework, defects found by customers, warranty claims and reputational harm, usually exceeds the cost of preventing it.

Quality planning, assurance and control

ActivityQuestionExamples
Quality planningWhat standards and criteria apply, and how will we meet them?Acceptance criteria, Definition of Done, test strategy, regulatory standards
Quality assuranceAre our processes likely to produce quality?Process audits, code reviews, design reviews, peer reviews
Quality controlDo deliverables meet the criteria?Testing, inspections, measurements

Prevention over inspection

A principle from quality management thinking (associated with Deming and others): build quality into processes rather than inspecting defects out at the end. Practical examples:

  • Clear acceptance criteria before work starts.
  • Peer review of designs and code.
  • Automated testing in continuous integration pipelines.
  • Checklists for repetitive tasks (e.g., deployment checklists).
  • Early prototypes with users.

Definition of Done

In agile teams, the Definition of Done (DoD) is a shared quality standard every increment must meet. Example:

Definition of Done (illustrative)
[ ] Acceptance criteria met and demonstrated to product owner
[ ] Code peer-reviewed and merged to main branch
[ ] Automated unit and integration tests passing
[ ] Security scan passed with no high-severity findings
[ ] Accessibility checks against agreed standard completed
[ ] Documentation and release notes updated
[ ] Deployed to staging; no regressions in smoke tests

The DoD applies to every item; acceptance criteria are specific to each item.

Useful quality tools

  • Cause-and-effect (fishbone) diagram: organise possible causes of a problem (people, process, technology, materials, environment, measurement).
  • Pareto analysis: often a minority of causes produce most defects; focus on them first.
  • Control charts: distinguish normal variation from special causes in repeatable processes.
  • Root cause analysis (5 Whys): keep asking why until you reach a cause you can fix.

Worked example: 5 Whys

Illustrative. A fictional software firm in Lahore saw a spike in production defects.

  1. Why? Defects in the payments module after release.
  2. Why? Edge cases not tested.
  3. Why? Test cases written late, after coding, under time pressure.
  4. Why? Acceptance criteria were vague when stories entered sprints.
  5. Why? Backlog refinement sessions were routinely cancelled.

Fix: protect refinement time; require testable acceptance criteria before a story can enter a sprint; add edge-case examples to the DoD for payment features. Defects in subsequent releases fell substantially.

Quality in regulated and physical projects

Construction, healthcare, aviation and financial services projects must meet external standards and inspections (e.g., building codes, medical device regulations, financial regulators' requirements). Integrate inspection and test plans (ITPs) into the schedule, with hold points where work cannot proceed until inspected. Organisations may also operate quality management systems certified to ISO 9001.

Balancing quality, time and cost

Cutting testing to meet a date is a common temptation. Make the trade-off explicit: what risk is accepted, who accepts it, and what mitigation exists (e.g., limited release, feature flags, extra monitoring). Record the decision.

Common mistakes

  • Vague acceptance criteria.
  • Testing compressed at the end of the schedule.
  • DoD written but ignored under pressure.
  • Treating quality as the QA team's job alone.
  • Fixing symptoms without root cause analysis.

Quick self-check

What share of your defects in the last release were found by customers rather than the team? If it is rising, look upstream at requirements and review practices, not just at testing.

Measuring quality

Choose a few quality measures that match the work: escaped defects (found after release), defect density, test pass rates, rework hours, customer complaints, inspection failures or first-time-right rates. Track trends over time and investigate changes. Share them with the team as learning signals rather than blame metrics, so people report problems honestly.

Quality culture

Quality ultimately depends on culture. Teams that are praised for finding problems early, given time to do work properly and trusted to stop a release when standards are not met produce better results than teams pressured to hit dates at any cost.

Hands-on: defect Pareto in Excel

Defects sheet: A ID | B Release | C Severity | D Found in (test / production) | E Cause category
Pivot: Rows = Cause category, Values = Count of ID, sort descending
Cumulative %      =SUM($B$2:B2)/SUM($B$2:$B$10)
Chart             Insert > Statistic chart > Pareto (current Excel), or a combo of bars + cumulative line
Escape rate       =COUNTIFS(D:D,"production")/(COUNTA(A:A)-1)     (header excluded)

Template: Definition of Done (software example)

[ ] Acceptance criteria met and demonstrated to the product owner
[ ] Code peer-reviewed; no unresolved review comments
[ ] Automated unit and integration tests written and passing
[ ] Error states and agreed edge cases tested
[ ] Performance checked against the agreed threshold; tested on agreed devices/browsers
[ ] Security checks run (per policy); no high findings open
[ ] User-facing text and documentation updated
[ ] Deployed to the test environment

Adapt the items to your domain; in construction, items might include inspection sign-off, test certificates and as-built drawings.

Prompt template: a five-whys facilitation aid (approved AI tool)

We are running a five-whys analysis on this defect: <description>. Evidence so far: <facts>.
Suggest follow-up questions for each "why" that would test alternative explanations. Do not conclude the root cause;
list what evidence would confirm or rule out each candidate cause.

The team decides the root cause from evidence, not from the AI's suggestions.

How to measure success

  • Escape rate (defects found in production ÷ all defects) falling release on release.
  • Top Pareto category shrinking after targeted improvements.
  • Definition of Done reviewed in retrospectives and applied to every item.

Key takeaways

  • Quality is fitness for purpose; poor quality costs more than prevention.
  • Plan quality, assure processes and control deliverables; prefer prevention over inspection.
  • A Definition of Done sets a shared quality bar for every increment.
  • Use root cause tools (5 Whys, fishbone, Pareto) and make quality trade-offs explicit.

Check your understanding

Quick questions to lock in the lesson. They don’t count towards your certificate.

  1. Which activity is quality assurance rather than quality control?
  2. What is the difference between acceptance criteria and the Definition of Done?
  3. A team wants to skip security testing to meet a date. What is the right approach?

Put it into practice

Write or improve a Definition of Done for your team and run a 5 Whys on one recent defect or failure.

Enrol for free to save your progress

Reading is always free. Enrol to keep your place, take the final assessment and earn a verifiable certificate.