1. Introduction
A test-first approach means tests are created before writing production code. Only one well-known software development technique strictly follows this method. This question checks your understanding of what truly qualifies as test-first development.
[한국어 요약]
Test-first는 코드를 작성하기 전에 테스트를 먼저 만드는 개발 방식입니다.
이 문제는 어떤 기법이 이 개념을 정확히 따르는지 묻습니다.
2. Sample Question
Which of the following is an example of a test-first approach to development?
- a) Test-Driven Development
- b) Coverage-Driven Development
- c) Quality-Driven Development
- d) Feature-Driven Development
3. Correct Answer
✔ Correct Answer: a) Test-Driven Development
Test-Driven Development (TDD) is the most widely known and widely used test-first development technique. With TDD, developers write a failing test first, then write the minimum code required to make that test pass, and finally refactor.
[한국어 요약]
정답은 a) TDD입니다.
테스트를 먼저 만들고 그 테스트를 통과시키기 위해 코드를 작성하는 전형적인 Test-first 방식입니다.
4. Why the Other Options Are Not Correct
b) Coverage-Driven Development — ✖ Not correct
This is not a test-first method. It focuses on achieving certain coverage levels, not on writing tests before developing code.
[한국어 요약]
Coverage 중심 접근일 뿐, 테스트를 먼저 작성하는 방식이 아닙니다.
c) Quality-Driven Development — ✖ Not correct
Quality-Driven Development focuses on achieving high quality, but it does not mandate writing tests first. Therefore, it is not a test-first approach.
[한국어 요약]
품질을 강조하는 방식이지만, Test-first 절차를 따르지는 않습니다.
d) Feature-Driven Development — ✖ Not correct
Feature-Driven Development (FDD) is an agile methodology focused on delivering features. It is not a test-first development model and does not require tests to be written before code.
[한국어 요약]
FDD는 기능 중심 애자일 방법론이며, 테스트 우선 접근이 아닙니다.
5. Summary
Among the provided options, only Test-Driven Development follows a true test-first workflow. TDD requires tests to be written before code, making it the correct example of test-first development. refer to FL-2.1.3
[한국어 요약]
제시된 선택지 중 테스트를 먼저 작성하는 기법은 TDD뿐입니다.
Related: More ISTQB posts
