In brief
In a two-week sprint, testing starts at backlog refinement, not after coding is done. The tester helps write acceptance criteria, test tasks are part of the sprint plan, each story is tested as soon as it is finished, and its automated tests are written in the same sprint. A story is done only when it meets the Definition of Done, testing included. The biggest enemy is the mini-waterfall: nine days of coding and testing on day ten.
What the Scrum Guide says and what it does not
The Scrum Guide has no tester role. A Scrum Team consists of Developers, a Product Owner and a Scrum Master, and "Developers" means everyone who creates the increment, testers and analysts included. The Developers are accountable for quality by adhering to the Definition of Done, a formal description of the state of the increment when it meets the required quality measures. A sprint lasts one month or less. Many teams choose two weeks.
Two things follow. First, testing is not a separate phase after the sprint but part of the work on every story. Second, the whole team is responsible for making testing fit, not just the tester. If developers finish stories on the last day, no testing technique will save the sprint.
A two-week sprint calendar
An example schedule for a team with one or two testers:
| Day | What happens with testing |
|---|---|
| before the sprint | backlog refinement: the tester asks about edge cases, data and dependencies; stories get acceptance criteria |
| day 1 | planning: test tasks and automation are in the plan and in the estimate of every story |
| days 2–3 | the tester prepares cases and data, developers finish the first small stories |
| days 3–8 | every finished story is tested right away; automated tests are written alongside the code |
| day 9 | automated regression on the build with all changes, exploratory testing of the whole increment |
| day 10 | sprint review with a working increment, retrospective |
Days 3–8 are the key. For testing to run in parallel, stories must be small and the team must finish them one by one rather than start them all at once. A work-in-progress limit helps: a new story starts only when the previous one has passed testing.
Acceptance criteria and the Definition of Done
Acceptance criteria are the first test written for a story. A good criterion can be checked unambiguously: "a transfer above the daily limit is rejected with a message about the limit", not "the system supports limits". Writing them as examples, for instance in Gherkin, lets you turn criteria directly into automated tests, as described in BDD and acceptance tests.
The Definition of Done applies to every story. Sample testing items:
- acceptance criteria checked and passed,
- unit tests and API tests for new logic written and green in CI,
- the regression tests affected by the change updated,
- no open critical or high defects related to the story,
- the change deployed to the test environment by the same pipeline as to production.
A story that does not meet the Definition of Done does not enter the increment and goes back to the backlog. Counting it as "almost done" is the fastest route to testing debt.
Automation in the same sprint
A common pattern is "we automate in sprint N+1". The story is tested manually, and its automated tests are written in the following sprint. In practice, the next sprint has its own stories and automation slips forever. A few months later, regression is manual and takes several days.
It is better to agree that automated tests are part of the story. A division of work helps:
- developers write unit tests together with the code,
- API and component tests are written by a developer or a tester, depending on skills,
- UI tests only for key paths, usually by the test automation engineer,
- regression runs in CI on every change, and the full suite overnight.
Fast regression is a precondition for short sprints. How to keep it up with frequent releases is covered in Regression testing with weekly releases. This is how work runs in the case study on test automation for a SaaS product, where the test suite runs in the CI pipeline from the first sprint.
The tester's role in a Scrum team
A tester in Scrum executes fewer cases from a list and does more to prevent bugs and assess risk:
- at refinement, asks questions that expose gaps in requirements before any code is written,
- paired with a developer, discusses test cases before coding and reviews unit tests,
- in exploratory testing, looks for bugs the acceptance criteria did not anticipate, as described in Exploratory testing,
- at the retrospective, brings data: where defects arose and why they were not caught earlier.
When a team has one tester for six or seven developers, the tester cannot test everything alone. Then developers test each other's stories, and the tester focuses on risks and automation.
What does not fit in a sprint
Some testing will not fit into one team's two weeks: integration with other teams' systems, performance testing in a production-like environment, user acceptance testing at a bank or insurer. There is no point pretending otherwise. Plan it openly instead: a separate release-level test track with its own criteria, described in Test entry and exit criteria.
A "hardening sprint" every few sprints, in which the team only tests and fixes, is a poor solution. It is a return to waterfall and a sign that the Definition of Done is too weak. As part of test automation, B2Bnetwork engineers connect tests to CI/CD and teach the team to extend the suite, so regression fits the sprint rhythm.
Questions and answers
Does Scrum need a dedicated tester?
Scrum does not require one, but most teams working on bank or insurer systems include a tester. Testing is a distinct skill: designing cases, assessing risk, exploratory testing. A tester does not take responsibility for quality away from developers, though, because according to the Scrum Guide all Developers are accountable for it.
What if stories are finished on the last day of the sprint?
Split stories into smaller ones, set a work-in-progress limit and start with the ones that take longest to test. At the retrospective, look at a chart of when stories reached testing. If they all arrived on day nine, the problem lies in planning and story size, not in the tester's speed.
Should regression testing happen in every sprint?
Yes, if the increment is to be releasable. Manual regression in every sprint soon stops fitting the time box, so regression has to be automated and run in CI on every change. What stays manual is exploratory testing of the areas the changes touched.
How do you test in Scrum when production releases happen once a quarter?
A sprint still ends with an increment that meets the Definition of Done and could go to production. Release-level testing (integration with other systems, performance, UAT) is planned as a separate track with criteria. The important thing is not to push into it tests that should have happened in the sprint.