Many teams adopt sprints but keep a waterfall habit inside them: developers build for most of the sprint, then hand everything to testers in the last few days. Testing becomes a bottleneck, bugs roll into the next sprint, and testers are blamed for delays they did not cause. Shift-left testing fixes this by moving quality work earlier, into refinement and development, so that testing happens continuously rather than at the end.
This guide describes a practical QA process for agile teams of any size. It is the process our software testing and QA engineers bring when they join a client team, and it works whether testers sit inside the team or are added through staff augmentation.
What shift-left means in practice
- Quality starts at refinement. Testers help shape acceptance criteria and spot edge cases before estimation.
- Developers test their own code. Unit and integration tests are part of building a feature, not a later phase.
- Testing runs in parallel. Testers prepare test cases and automation while the feature is being built and test each story as soon as it is ready.
- The pipeline enforces the basics. Automated checks block broken changes before anyone spends time on manual testing.
- The whole team owns quality. A story is not done until it is tested, whoever does the testing.
Start with a definition of done
A definition of done is a short, written list of conditions every story must meet before it counts as complete. It makes quality expectations explicit and stops the familiar argument about whether something is done or only done apart from testing. Keep it short enough to check honestly, and review it every few sprints. Add a release-level list for the extra checks that only make sense before shipping.
- Acceptance criteria are met and verified
- Unit and integration tests are written and passing
- Code is reviewed and merged to main
- Regression tests are added for the new behaviour
- No open critical or major bugs against the story
- All done stories are deployed to a shared test environment
- The automated regression suite is green
- The product owner has accepted the demoed stories
- Smoke tests pass on staging
- Exploratory testing of new features is complete
- Known issues and release notes are written
- Rollback plan is confirmed
- Monitoring and alerts cover the new features
Three amigos: agree before you build
A three amigos session brings together the three perspectives on a story: business (product owner or analyst), development and testing. In 20 to 30 minutes before a story enters a sprint, they walk through it and answer three questions: what problem are we solving, how will we build it, and what could go wrong?
The most useful output is a set of concrete examples written as acceptance criteria, often in a Given, When, Then format. For example: given a cart with an expired coupon, when the user checks out, then the coupon is removed and the user sees why. Examples like this expose disagreements that a vague requirement hides, and they become test cases, often automated ones, almost directly. Good requirements make this easier; see our guide to writing a software requirements document.
Testing inside the sprint
- 01Refine
Three amigos agree acceptance criteria and examples; testers flag risks and test data needs.
- 02Build
Developers write code with unit tests; testers prepare test cases and automation in parallel.
- 03Verify
Each story is tested as soon as it is ready, ideally in a preview environment for its pull request.
- 04Integrate
CI gates run automated checks on every merge; regression runs on the shared environment.
- 05Review and learn
Demo to the product owner; in the retrospective, look at bugs that escaped and why.
Each story moves through the loop independently, so testing never piles up at the end of the sprint.
DivTech SystemTwo habits make the loop work. First, keep stories small, so they reach testing early and often rather than all on the last day. Second, limit work in progress: when testing is the constraint, developers help test or automate instead of starting new stories. For many teams this single change removes most end-of-sprint crunch.
CI test gates
Automated gates in the CI/CD pipeline catch broken changes before they consume anyone's time. Layer them so the fastest checks run most often:
| Gate | Runs when | What it checks | Blocks? |
|---|---|---|---|
| Pull request | Every push to a pull request | Lint, unit tests, component tests, dependency scan | Yes, merge is blocked |
| Merge to main | Every merge | Integration and API tests, build of the release artifact | Yes, deployment is blocked |
| Scheduled | Nightly or several times a day | Full end-to-end regression, security scans, performance smoke | Raises a ticket for the team |
| Pre-release | Before production deployment | Smoke tests on staging, release checklist, exploratory sign-off | Yes, release is held |
Which tests belong in which gate follows from the test pyramid in manual vs automation testing, and the tool you use for end-to-end tests is covered in Selenium vs Cypress vs Playwright.
Test environments and test data
Shift-left stalls when testers wait days for a working environment. Aim for a preview environment per pull request where the stack allows it, or at least a stable shared test environment that is redeployed automatically from main. Test data needs the same care: seed scripts that create known users, products and edge cases on demand are far more reliable than a shared database that drifts over months. Never copy raw production data into test environments without masking personal and payment details.
How the tester's role changes
In a shift-left team, testers spend less time executing scripted test cases at the end and more time on higher-value work: questioning requirements in refinement, designing test strategies, building and maintaining automation, exploratory testing of risky areas, and coaching developers on testability. That is a bigger role, not a smaller one, and it needs support through training and time for automation work in sprint planning.
Bug triage that keeps the backlog honest
Without triage, bug backlogs grow until nobody reads them, and genuinely serious issues get lost among hundreds of stale ones. A simple routine works for most teams:
- Separate severity from priority. Severity is the impact on users; priority is when the team will fix it. A cosmetic issue on the pricing page may be low severity but high priority.
- Triage on a fixed rhythm. A short session two or three times a week, with the product owner, a developer and a tester, decides on every new bug.
- Write reproducible reports. Steps, expected and actual results, environment, build version and evidence such as screenshots or logs.
- Close or schedule, never park. Each bug is fixed now, scheduled, or closed as will not fix with a reason. Old bugs nobody intends to fix only hide the important ones.
- Fix bugs found in the sprint within the sprint. A story with an open major bug is not done.
Measuring QA without perverse incentives
Useful measures look at the system: escaped defects (bugs found in production, by severity), time from bug report to fix, the share of builds failing for flaky tests, and story cycle time from start to done. Pair them with the delivery measures in our DORA metrics guide, especially change failure rate. Avoid counting bugs per developer or test cases written per tester; both reward the wrong behaviour.
Rolling the process out
- Sprint 1Definition of done
Agree and publish the story and release checklists; start writing acceptance criteria as examples.
- Sprint 2Three amigos and PR gate
Hold three amigos for every new story; block merges on lint and unit tests.
- Sprints 3-4Regression automation
Automate the most critical user journeys and add them to the scheduled gate.
- Sprints 5-6Triage and metrics
Set the triage rhythm, start tracking escaped defects and review them in retrospectives.
Indicative pace for one team with two-week sprints; adjust to your starting point.
DivTech SystemThe process works across stacks, from Angular front ends to mobile apps, and in sectors with heavy content and user variety such as eLearning. DivTech can embed QA engineers in your team to set it up and coach the team through the first sprints. Get a quote to discuss your team's setup.
Frequently asked questions
What is shift-left testing?
Moving testing activities earlier in development: testers help define acceptance criteria during refinement, developers write automated tests as they build, and automated checks run on every change, instead of testing only after development is finished.
Who is responsible for quality in an agile team?
The whole team. Testers bring testing expertise, risk thinking and automation skills, but developers write unit tests, product owners clarify acceptance criteria, and a story is not done until it is tested.
What is a three amigos meeting?
A short session where a business representative, a developer and a tester review a story before it is built, agree concrete examples of expected behaviour, and identify risks and open questions.
How many testers does an agile team need?
It depends on the product's risk, the amount of automation and how much testing developers do. Many teams start with one tester per small team and adjust based on whether testing is a recurring bottleneck.