QuestionQ77

Agile Testing Methods, Techniques and Tools

Consider an Agile team in which developers use a development practice with these primary steps:

  • Write a test that specifies the behavior of a small piece of code and references a programming element that does not yet exist.
  • Run the test to confirm that it fails because the functionality specified by the test has not yet been implemented.
  • Write only enough code to make the test pass.
  • If necessary, restructure the code by changing its internal structure without changing its external behavior, and rerun the test to ensure it still passes after this restructuring.

In this practice, these steps are repeated for the next small piece of code, running both the earlier tests and the newly added tests.

Which of the following testing quadrants would contain the tests produced by this practice?

  • A Q4 - Technology facing tests that critique the product
  • B Q2 - Business facing tests that support the team
  • C Q1 - Technology facing tests that support the team
  • D Q3 - Business facing tests that critique the product
Explanation

The red–green–refactor cycle is test-driven development (TDD). It produces automated unit tests that exercise code-level behavior and provide rapid feedback during implementation and refactoring. In the Agile Testing Quadrants, such tests are Q1: technology-facing tests that support the team.

Community Discussion

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