Istqb Certified Tester Foundation Level CTFL · Free Practice Question Easy

Question 7

What key characteristic is shared among TDD, ATDD, and BDD development approaches?

  • A

    Tests are written after code completion

  • B

    Tests are defined before writing code

  • C

    Tests are optional in development

  • D

    Tests are only used for regression

Reveal correct answer

Correct answer: B

A.

This approach is contrary to the key characteristic shared by TDD, ATDD, and BDD. These methodologies emphasize writing tests before code is developed to guide the design and implementation of the software.

B.

This is the central feature of TDD, ATDD, and BDD. In these methodologies, tests are created before any code is written, serving as the foundation for development. This ensures that the resulting code meets the test criteria, fostering early feedback and alignment with requirements.

C.

Tests are integral to TDD, ATDD, and BDD. These approaches use tests as the driving force for development, design, and ensuring software quality. Making tests optional would undermine their entire purpose.

D.

While tests written during TDD, ATDD, and BDD can later serve as regression tests, their primary purpose is to direct development and validate the system’s behavior during the development process. Limiting their scope to regression testing misses their core function of guiding code creation.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need