ISTQB 연습문제 풀이 - Exam D : Q#10

Test-First Approach to Development

1. Introduction

A test-first approach to development means that tests are defined before the production code is written.

This approach is commonly used in Agile development and is a frequent topic in the ISTQB Foundation Level exam.

테스트 우선 개발(Test-first approach)이란 실제 코드를 작성하기 전에 먼저 테스트를 정의하는 개발 방식을 의미합니다.

이 개념은 애자일 개발과 밀접하며 ISTQB 시험에서도 자주 출제됩니다.


2. Practice Question

❓ Question

Which of the following is an example of a test-first approach to development?

  • a) Behavior-Driven Development
  • b) Test Level Driven Development
  • c) Function-Driven Development
  • d) Performance-Driven Development

✅ Correct Answer: a)


3. Explanation

✔ a) Behavior-Driven Development — Correct

Behavior-Driven Development (BDD) is a well-known example of a test-first approach.

In BDD, the expected behavior of the system is defined before the implementation, usually in the form of scenarios such as Given–When–Then.

BDD(행위 주도 개발)는 대표적인 테스트 우선 개발 방식입니다.

Given–When–Then 형식의 시나리오로 시스템의 기대 동작을 먼저 정의한 뒤 이를 만족하는 코드를 구현합니다.


❌ b) Test Level Driven Development — Incorrect

Test Level Driven Development is not a recognized test-first approach in the ISTQB syllabus.

Test Level Driven Development는 ISTQB에서 정의된 테스트 우선 개발 기법이 아닙니다.


❌ c) Function-Driven Development — Incorrect

Function-Driven Development focuses on implementing functionality first, not on defining tests before coding.

Function-Driven Development는 기능 구현 중심 접근법으로, 테스트 우선 개발 방식이 아닙니다.


❌ d) Performance-Driven Development — Incorrect

Performance-Driven Development focuses on meeting performance goals, not on writing tests before implementation.

Performance-Driven Development는 성능 목표에 초점을 둔 방식으로, 테스트 우선 개발과는 다릅니다.


4. Summary Table

Option Main Focus Test-First? 요약
a Define behavior/tests before code ✔ Yes 대표 사례
b Not an official approach ✖ No 비정의 용어
c Function-first development ✖ No 기능 중심
d Performance goals first ✖ No 성능 중심

5. Final Takeaway

For the ISTQB exam, remember this key rule:

If tests or behavior definitions are written before the code, it is a test-first approach — such as BDD.

시험 대비 핵심 문장입니다.

코드보다 테스트(또는 행위 정의)를 먼저 작성하면 테스트 우선 개발이며, 대표적인 예가 BDD이다.

Related: More ISTQB Posts | Next Question

다음 이전