# 유닛 테스트 문제 만들기

{% hint style="info" %}
**유닛테스트 문제**는 채점모드, 제출모드, 실행모드로 문제를 생성할 수 있습니다.
{% endhint %}

이 문서에서는 **유닛테스트 문제**를 입력하는 내용만을 다룹니다. \
새로 문제를 만들 때 기본적으로 입력하는 사항들에 대해서는 \
"문제 가져오기 및 공통 설정" 도움말을 참고해주세요.&#x20;

{% content-ref url="/pages/-LrsSaGzbBU26HJdqGao" %}
[문제 가져오기 및 공통 설정](/ko/edu-lecturer/04.quiz/import-and-configuration.md)
{% endcontent-ref %}

&#x20;<br>

### 1. 문제 해결 언어

![](/files/-M0RZJf4O6KY2BMKX_C0)

이 부분에서 강의에서 수강자에게 제공되는 '**기본 예제 코드**'를 작성합니다. \
유닛테스트 설정에서 **`Java`, `C`, `C++`**&#xC911; 사용할 언어 하나를 선택합니다. \
언어 설정에서 버젼과 빌드, 실행 옵션 등을 정할 수 있습니다.

### 2. 채점 답안

![](/files/-M0RZhrMhsNuDBEbZe_F)

테스트 코드를 작성하는 부분입니다. \
테스트 대상을 다양하게 테스트할 수 있도록 코드를 작성하시는 것을 권장합니다.&#x20;

프레임워크 버젼을 선택하고 테스트 함수를 선언하면 하단의 '**테스트 메소드**'에서 이를 인식합니다. \
'**비율**'에서 각 테스트 메소드 별 반영 비율을 입력할 수 있는데,\
&#x20;총합이 100이 되도록 비율을 설정하시면 됩니다.

### 3. 채점 옵션

![](/files/-M0RZwxz52s446yFrrpl)

테스트 결과 옵션을 설정할 수 있는 부분입니다. 테스트 실패 케이스에 대한 메시지 출력 여부와 \
프로그램의 수행시간 제한 여부를 설정할 수 있습니다.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.goorm.io/ko/edu-lecturer/04.quiz/unit-test.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
