QuestionQ63

Fundamental Agile Testing Principles, Practices, and Processes

Which statement about test-driven development (TDD) and behavior-driven development (BDD) is correct?

  • A Both BDD tests and TDD tests are written primarily at the acceptance level, though these tests may also be written at the integration or system levels
  • B Specific BDD frameworks can be used to define acceptance criteria based on the role/feature/benefit template (“As a...I want…so that…”)
  • C TDD tests are focused on the implementation of the software while BDD tests on the exhibited behavior of the software
  • D TDD tests and BDD tests are written by developers, but TDD tests are generally easier for other team members and stakeholders to understand than BDD tests
Explanation

BDD frameworks such as Cucumber support user stories and acceptance criteria expressed in a role/feature/benefit format: “As an actor, I want a feature, so that a benefit.” Cucumber documents this format and identifies acceptance criteria as conditions a product must meet for stakeholder acceptance.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!