# 단위 테스트 (스몰 테스트)

## 단위 테스트 작성 경험

* 단위 테스트는 기능 작성 후 바로 작성하는 것이 좋다.
* 나중에 작성해야지\~ 하는 순간.. 큰일이 되어 버린다.
  * 채용 과제 만들 때, 간단한 기능이라고 생각하고 단위 테스트 작성을 미뤄두었다가 나중에 작성하려고 하니 너무 귀찮아서 작성하는데 시간이 오히려 오래 걸렸고 테스트의 품질도 좋지 못한 코드를 작성하게 되었다.
* 기능은 구현 한 그 시점이 가장 그 기능에 대해 잘 아는 시점이다.&#x20;
* 테스트 주도 개발의 강력한 점은 테스트를 작성하는 시점에 있다고 생각한다.


---

# 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://programmer-jjy.gitbook.io/second-brain/second-brain/devops/testcode/small-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.
