A Definition of Done is a set of shared criteria that must be met for work to be considered complete. Mountain Goat Software defines it as the Scrum Team’s shared understanding of completed work. This standard expresses the quality and completion conditions that an Increment must meet.
According to the Scrum Guide, the Definition of Done is the commitment for the Increment. An Increment is a concrete step toward the Product Goal. An Increment is created the moment a Product Backlog item meets the Definition of Done. The definition provides transparency by showing which quality measures the Increment meets.
Establishing completion criteria
Atlassian recommends involving the people who should have a say in what completion means for the project when creating a Definition of Done. These may include the Product Owner, Scrum Master, Scrum Team members, test specialists, product managers, sponsors, and relevant stakeholders. Participants contribute to defining criteria related to their areas of expertise.
According to Atlassian, the criteria should be specific, measurable, achievable, relevant, and time-bound statements. The publication gives specifying that code has passed unit, integration, and end-to-end tests as a more concrete example than simply saying the code has been tested. Criteria vary according to the type of project and the team doing the work.
Mountain Goat Software recommends starting with a standard the team can meet and improving it over time. For example, a team that relies mainly on manual testing may not be able to provide fully automated regression test coverage immediately. The team can establish adding appropriate automated tests for each new function as its initial standard and reduce its existing test debt over time.
Example criteria for software work
In Mountain Goat Software’s software team example, writing and committing the code is one of the completion criteria. The list also includes compliance with the team’s coding standards. Having the work reviewed by another team member or produced through pair programming is another example condition.
In the same example, appropriate automated tests are expected to have been added and passed, significant manual or exploratory tests completed, and the work integrated into the product. The list also includes the product working in supported browsers and environments. Having no known critical or high-severity bugs remaining open for the work is another example criterion.
Atlassian gives different examples for different types of projects. In a mobile application project, compressing images or minifying and compressing code with gzip can be used as criteria. In a software project, deploying the Increment to a staging environment and having the team test it may be among the criteria.
Mountain Goat Software notes that testing levels may vary by product. Examples in the publication include unit test, service-level test, UI test, exploratory testing, performance testing, and security testing. When the work requires it, updating user-facing help, release notes content, or API descriptions may also be part of the completion standard.
Mountain Goat Software’s marketing team example includes having the copy and design reviewed and approved, ensuring the work complies with brand standards, and obtaining approval from the required stakeholders. Scheduling or publishing the work in the correct system is also part of the same example. The publication presents these lists as examples for different types of work.
The difference from acceptance criteria
According to Mountain Goat Software, acceptance criteria describe what conditions must be true for a specific Product Backlog item to meet a Product Owner’s or stakeholder’s need. These conditions vary from item to item. The Definition of Done contains shared standards that apply to all or nearly all completed work.
Mountain Goat Software explains this difference using an online shopping site example. For search work, the ability to search by type, price range, or rating could be acceptance criteria. Payment work in the shopping cart requires different conditions, such as charging the correct amount and calculating the shipping fee correctly. Informing the buyer when a card is declined and allowing them to update their card is another example given for the payment work.
In the same example, testing the work, committing the code, ensuring it works in supported browsers, and integrating it into the product could be shared Definition of Done criteria. According to Mountain Goat Software, for a Product Backlog item to be considered complete, it must meet both its own acceptance criteria and the team’s Definition of Done standard.
Atlassian also associates acceptance criteria with user stories or features. In its search field example, the field being in the top navigation bar and the search starting after the Search button is pressed are conditions specific to that story. The same example also includes the specified gray placeholder text appearing inside the field.