Capstone: Pila 1.2 · lesson 4 of 9
Ideas in this lesson
ASprint goal2.6: one sentence the sprint delivers
BEstimates3.9: ranges, not promises
CDefinition of done2.6: what finished means, for every story

Plan the sprint

Last updated

You're the team now, all of it. Before building, plan what this sprint will deliver and how you'll know each piece is finished. In this lesson you'll break the stories into tasks, estimate them, fit them into the time you actually have, and write the definition of done every story must meet before it counts.

By the end of this lesson you can

  • Break stories into tasks small enough to estimate
  • Plan a sprint that fits the time available, with a goal
  • Write a definition of done that a story can be checked against

From stories to tasks

A story says what a user gets; tasks say what you'll do to deliver it. Small tasks are easier to estimate, and show progress. The reference's tasks for “Reminder the day before”:

Story #50, as tasks
TaskEstimate
Reminder and ReminderBook: add a reminder, find the ones due, with unit tests1.5–2.5 h
send_due(): send each due reminder through the gateway, with a test using FakeGateway0.5–1 h
Run it from the nightly job, on the days the jobs run0.5 h
Acceptance tests for the story’s criteria0.5–1 h

Estimates are ranges (lesson 3.9): the honest answer to “how long?” is “probably about this, possibly more.” Working alone, hours are fine; a team would use points, which compare sizes rather than promise times.

How much time do you have?

Look at your week and decide how many hours you can really give lessons C.5 to C.7. Then plan the sprint: a goal, and the stories and tasks that fit.

You can give 8 hours. The three stories’ tasks add up to 6–9.5 hours. What do you do?
Sprint planKept in this browser only
  • About people, not code (not yet)
  • One sentence (done)
  • Tasks for at least two stories (not yet)
  • Estimates as ranges (not yet)
  • Tests are tasks too (not yet)
Write each part until its checks pass.

The definition of done

“Done” should mean the same thing for every story. Write the checklist, and save it as docs/definition-of-done.md. You'll tick it for each story in C.5 and C.6.

Definition of doneKept in this browser only
  • At least five items (not yet)
  • Tests written and passing (not yet)
  • Reviewed, through a pull request or a read-through (not yet)
  • Acceptance criteria checked (not yet)
  • The checks pass: lint and tests (not yet)
  • Docs or changelog updated (not yet)
Write each part until its checks pass.
A story’s code is merged, but its acceptance tests aren’t written yet. Is it done?

Ready to start

Move the sprint's stories from Backlog to Ready on your board, in order. On GitHub, you can also add a milestone called 1.2.0 and put the issues in it, to see the release's progress at a glance.

Commit the sprint plan and the definition of done. The plan is a forecast, not a contract: in C.9's retrospective you'll compare it with what happened.

Check your plan

What makes a good sprint goal?
Why estimate in ranges?

Sources

Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.

All sources for Simple Software Development